Skip to content

Commit

Permalink
Merge pull request kubernetes#15 from dims/use-config-map-for-ds-and-…
Browse files Browse the repository at this point in the history
…run-on-all-ndoes

Use configmap for DaemonSet and run on all nodes
  • Loading branch information
dims committed Jan 15, 2018
2 parents 5b59d37 + db9f2be commit 4d3475f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions manifests/openstack-cloud-controller-manager-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ spec:
k8s-app: openstack-cloud-controller-manager
spec:
hostNetwork: true
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
serviceAccountName: cloud-controller-manager
containers:
Expand All @@ -40,7 +37,7 @@ spec:
args:
- /bin/openstack-cloud-controller-manager
- --v=2
- --cloud-config=/etc/kubernetes/cloud-config
- --cloud-config=/etc/cloud/cloud-config
- --cloud-provider=openstack
- --use-service-account-credentials=true
- --address=127.0.0.1
Expand All @@ -55,8 +52,8 @@ spec:
- mountPath: /etc/kubernetes/controller-manager.conf
name: kubeconfig
readOnly: true
- mountPath: /etc/kubernetes/cloud-config
name: cloudconfig
- mountPath: /etc/cloud
name: cloud-config-volume
readOnly: true
- mountPath: /usr/libexec/kubernetes/kubelet-plugins/volume/exec
name: flexvolume-dir
Expand All @@ -81,7 +78,6 @@ spec:
path: /etc/kubernetes/controller-manager.conf
type: FileOrCreate
name: kubeconfig
- hostPath:
path: /etc/kubernetes/cloud-config
type: FileOrCreate
name: cloudconfig
- name: cloud-config-volume
configMap:
name: cloud-config

0 comments on commit 4d3475f

Please sign in to comment.