lite-apiserver

lite-apiserver sample config

lite-apiserver/lite-apiserver.yaml

  1. ---
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5. labels:
  6. k8s-app: lite-apiserver
  7. name: lite-apiserver
  8. namespace: edge-system
  9. spec:
  10. containers:
  11. - command:
  12. - lite-apiserver
  13. - --ca-file=/etc/kubernetes/pki/ca.crt
  14. - --tls-cert-file=/etc/kubernetes/edge/lite-apiserver.crt
  15. - --tls-private-key-file=/etc/kubernetes/edge/lite-apiserver.key
  16. - --kube-apiserver-url={{.MasterIP}}
  17. - --kube-apiserver-port=6443
  18. - --port=51003
  19. - --tls-config-file=/etc/kubernetes/edge/tls.json
  20. - --v=4
  21. - --file-cache-path=/data/lite-apiserver/cache
  22. - --timeout=3
  23. image: superedge/lite-apiserver:v0.3.0
  24. imagePullPolicy: IfNotPresent
  25. name: lite-apiserver
  26. volumeMounts:
  27. - mountPath: /etc/kubernetes/pki
  28. name: k8s-certs
  29. - mountPath: /etc/kubernetes/edge
  30. name: edge-certs
  31. readOnly: true
  32. - mountPath: /var/lib/kubelet/pki
  33. name: kubelet
  34. readOnly: true
  35. - mountPath: /data
  36. name: cache
  37. hostNetwork: true
  38. volumes:
  39. - hostPath:
  40. path: /var/lib/kubelet/pki
  41. type: DirectoryOrCreate
  42. name: kubelet
  43. - hostPath:
  44. path: /data
  45. name: cache
  46. - hostPath:
  47. path: /etc/kubernetes/pki
  48. type: DirectoryOrCreate
  49. name: k8s-certs
  50. - hostPath:
  51. path: /etc/kubernetes/edge
  52. type: DirectoryOrCreate
  53. name: edge-certs
  54. status: {}

Last modified June 15, 2021 : Fixed error links and paths (fef537b)