Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-controller-manager
namespace: {{ CLUSTER_NAME }}
spec:
replicas: 1
template:
spec:
containers:
- command:
- controller-manager
- "--master={{ APISERVER }}"
- "--allocate-node-cidrs=true"
- "--cloud-provider=qcloud"
- "--cluster-cidr={{ CLUSTER_CIDR }}"
- "--configure-cloud-routes=false"
- "--leader-elect=true"
- "--root-ca-file=/etc/kubernetes/secrets/ca.crt"
- "--service-account-private-key-file=/etc/kubernetes/secrets/service-account.key"
image: {{ IMAGE }}
name: kube-controller-manager
volumeMounts:
- mountPath: "/etc/kubernetes/secrets"
name: secrets
- mountPath: "/etc/ssl/certs"
name: ssl-host
volumes:
- name: secrets
secret:
secretName: kube-controller-manager
- hostPath:
path: "/usr/share/ca-certificates"
name: ssl-host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.