marco | acdae7e | 2015-12-02 15:35:37 +0100 | [diff] [blame] | 1 | {%- from "kubernetes/map.jinja" import master with context %} |
| 2 | apiVersion: v1 |
| 3 | kind: Pod |
| 4 | metadata: |
| 5 | name: kube-controller-manager |
| 6 | namespace: kube-system |
| 7 | spec: |
| 8 | dnsPolicy: ClusterFirst |
| 9 | hostNetwork: true |
| 10 | restartPolicy: Always |
| 11 | terminationGracePeriodSeconds: 30 |
| 12 | containers: |
| 13 | - name: kube-controller-manager |
| 14 | image: {{ master.registry }}/kube-controller-manager:{{ master.version }} |
| 15 | command: |
| 16 | - /bin/sh |
| 17 | - -c |
| 18 | - /usr/local/bin/kube-controller-manager |
marco | 45fc1b7 | 2016-07-02 16:11:18 +0200 | [diff] [blame] | 19 | --master={{ master.apiserver.insecure_address }}:8080 |
marco | acdae7e | 2015-12-02 15:35:37 +0100 | [diff] [blame] | 20 | --cluster-name=kubernetes |
| 21 | --service-account-private-key-file=/etc/ssl/private/kubernetes-server.key |
| 22 | --v=2 |
| 23 | --root-ca-file=/etc/ssl/certs/ca-{{ master.ca }}.crt |
| 24 | --leader-elect=true |
| 25 | 1>>/var/log/kube-controller-manager.log 2>&1 |
| 26 | imagePullPolicy: IfNotPresent |
| 27 | livenessProbe: |
| 28 | httpGet: |
| 29 | host: 127.0.0.1 |
| 30 | path: /healthz |
| 31 | port: 10252 |
| 32 | scheme: HTTP |
| 33 | initialDelaySeconds: 15 |
| 34 | timeoutSeconds: 15 |
| 35 | resources: |
| 36 | limits: |
| 37 | cpu: 200m |
| 38 | requests: |
| 39 | cpu: 200m |
| 40 | volumeMounts: |
| 41 | - mountPath: /srv/kubernetes |
| 42 | name: srvkube |
| 43 | readOnly: true |
| 44 | - mountPath: /var/log/kube-controller-manager.log |
| 45 | name: logfile |
| 46 | - mountPath: /etc/ssl |
| 47 | name: etcssl |
| 48 | readOnly: true |
| 49 | - mountPath: /usr/share/ca-certificates |
| 50 | name: usrsharecacerts |
| 51 | readOnly: true |
| 52 | volumes: |
| 53 | - hostPath: |
| 54 | path: /srv/kubernetes |
| 55 | name: srvkube |
| 56 | - hostPath: |
| 57 | path: /var/log/kube-controller-manager.log |
| 58 | name: logfile |
| 59 | - hostPath: |
| 60 | path: /etc/ssl |
| 61 | name: etcssl |
| 62 | - hostPath: |
| 63 | path: /usr/share/ca-certificates |
| 64 | name: usrsharecacerts |