forked from public/stack
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: digitalocean-cloud-controller-manager
|
|
spec:
|
|
replicas: 1
|
|
revisionHistoryLimit: 2
|
|
selector:
|
|
matchLabels:
|
|
app: digitalocean-cloud-controller-manager
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: digitalocean-cloud-controller-manager
|
|
spec:
|
|
dnsPolicy: Default
|
|
hostNetwork: true
|
|
serviceAccountName: cloud-controller-manager
|
|
priorityClassName: system-cluster-critical
|
|
tolerations:
|
|
# this taint is set by all kubelets running `--cloud-provider=external`
|
|
# so we should tolerate it to schedule the digitalocean ccm
|
|
- key: "node.cloudprovider.kubernetes.io/uninitialized"
|
|
value: "true"
|
|
effect: "NoSchedule"
|
|
- key: "CriticalAddonsOnly"
|
|
operator: "Exists"
|
|
- key: "node-role.kubernetes.io/control-plane"
|
|
effect: NoSchedule
|
|
containers:
|
|
- image: digitalocean/digitalocean-cloud-controller-manager:v0.1.42
|
|
name: digitalocean-cloud-controller-manager
|
|
command:
|
|
- "/bin/digitalocean-cloud-controller-manager"
|
|
- "--leader-elect=false"
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 50Mi
|
|
env:
|
|
- name: DO_ACCESS_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: digitalocean
|
|
key: access-token
|
|
- name: DO_CLUSTER_VPC_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: digitalocean
|
|
key: vpc-id
|