2022-06-07 07:47:38 -04:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
control-plane: controller-manager
|
|
|
|
name: system
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: controller-manager
|
|
|
|
namespace: system
|
|
|
|
labels:
|
|
|
|
control-plane: controller-manager
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
control-plane: controller-manager
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
kubectl.kubernetes.io/default-container: manager
|
|
|
|
labels:
|
|
|
|
control-plane: controller-manager
|
|
|
|
spec:
|
|
|
|
securityContext:
|
2022-07-20 04:58:16 -04:00
|
|
|
runAsUser: 0 # required to read etcd certs and keys from /etc/kubernetes/pki
|
2022-06-07 07:47:38 -04:00
|
|
|
containers:
|
2022-11-26 15:13:35 -05:00
|
|
|
- command:
|
|
|
|
- /manager
|
|
|
|
args:
|
|
|
|
- --leader-elect
|
|
|
|
image: controller:latest
|
|
|
|
name: manager
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8081
|
|
|
|
initialDelaySeconds: 15
|
|
|
|
periodSeconds: 20
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /readyz
|
|
|
|
port: 8081
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
periodSeconds: 10
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/kubernetes/pki/etcd
|
|
|
|
name: etcd-certs
|
|
|
|
- mountPath: /host/usr/lib/os-release
|
|
|
|
name: usr-lib-os-release
|
|
|
|
- mountPath: /etc/os-release
|
|
|
|
name: etc-os-release
|
|
|
|
- mountPath: /etc/azure
|
|
|
|
name: azureconfig
|
|
|
|
readOnly: true
|
|
|
|
- mountPath: /etc/gce
|
|
|
|
name: gceconf
|
|
|
|
readOnly: true
|
2022-12-29 11:50:11 -05:00
|
|
|
- mountPath: /etc/constellation-upgrade-agent.sock
|
|
|
|
name: upgrade-agent-socket
|
|
|
|
readOnly: true
|
2022-11-26 15:13:35 -05:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 500m
|
|
|
|
memory: 128Mi
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 64Mi
|
|
|
|
volumes:
|
|
|
|
- name: etcd-certs
|
|
|
|
hostPath:
|
|
|
|
path: /etc/kubernetes/pki/etcd
|
|
|
|
type: Directory
|
|
|
|
- hostPath:
|
|
|
|
path: /usr/lib/os-release
|
|
|
|
type: File
|
2022-11-25 08:49:26 -05:00
|
|
|
name: usr-lib-os-release
|
2022-11-26 15:13:35 -05:00
|
|
|
- hostPath:
|
|
|
|
path: /etc/os-release
|
|
|
|
type: File
|
2022-11-25 08:49:26 -05:00
|
|
|
name: etc-os-release
|
2022-11-26 15:13:35 -05:00
|
|
|
- name: azureconfig
|
|
|
|
secret:
|
|
|
|
secretName: azureconfig
|
|
|
|
optional: true
|
|
|
|
- name: gceconf
|
|
|
|
configMap:
|
|
|
|
name: gceconf
|
|
|
|
optional: true
|
2022-12-29 11:50:11 -05:00
|
|
|
- name: upgrade-agent-socket
|
|
|
|
hostPath:
|
|
|
|
path: /run/constellation-upgrade-agent.sock
|
|
|
|
type: Socket
|
2022-07-20 04:58:16 -04:00
|
|
|
nodeSelector:
|
|
|
|
node-role.kubernetes.io/control-plane: ""
|
|
|
|
tolerations:
|
2022-11-26 15:13:35 -05:00
|
|
|
- effect: NoSchedule
|
|
|
|
key: node-role.kubernetes.io/control-plane
|
|
|
|
operator: Exists
|
|
|
|
- effect: NoSchedule
|
|
|
|
key: node-role.kubernetes.io/master
|
|
|
|
operator: Exists
|
2022-06-07 07:47:38 -04:00
|
|
|
serviceAccountName: controller-manager
|
|
|
|
terminationGracePeriodSeconds: 10
|