12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- apiVersion: extensions/v1beta1
- kind: DaemonSet
- metadata:
- labels:
- app: controller-manager
- name: controller-manager
- spec:
- selector:
- matchLabels:
- app: controller-manager
- strategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
- template:
- metadata:
- labels:
- app: controller-manager
- spec:
- nodeSelector:
- {% for key, value in node_selector.iteritems() %}
- {{key}}: "{{value}}"
- {% endfor %}
- containers:
- - env:
- - name: K8S_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- args:
- - -v
- - "5"
- - "--leader-election-namespace=$(K8S_NAMESPACE)"
- image: {{ openshift_service_catalog_image_prefix }}service-catalog:{{ openshift_service_catalog_image_version }}
- command: ["/usr/bin/controller-manager"]
- imagePullPolicy: Always
- name: controller-manager
- ports:
- - containerPort: 8080
- protocol: TCP
- resources: {}
- terminationMessagePath: /dev/termination-log
- dnsPolicy: ClusterFirst
- restartPolicy: Always
- securityContext: {}
- terminationGracePeriodSeconds: 30
|