apiVersion: v1
kind: Pod
metadata:
  name: kube-controller-manager
spec:
  hostNetwork: true
  containers:
  - name: kube-controller-manager
    command:
    - /usr/local/bin/kube-controller-manager 
    - --address=127.0.0.1 
    - --master=https://192.168.18.250:7443 
    - --allocate-node-cidrs=true 
    - --service-cluster-ip-range=10.254.0.0/16 
    - --cluster-cidr=172.30.0.0/16 
    - --cluster-name=kubernetes
    - --cluster-signing-cert-file=/etc/kubernetes/ssl/ca.pem 
    - --cluster-signing-key-file=/etc/kubernetes/ssl/ca-key.pem 
    - --service-account-private-key-file=/etc/kubernetes/ssl/ca-key.pem 
    - --root-ca-file=/etc/kubernetes/ssl/ca.pem 
    - --leader-elect=true 
    - --v=2
    image: mosquitood/kube-controller-manager:v1.8.4
    livenessProbe:
      httpGet:
        path: /healthz
        port: 10252
      initialDelaySeconds: 15
      timeoutSeconds: 1
    volumeMounts:
    - mountPath: /etc/kubernetes
      name: k8sssl 
      readOnly: true
    - mountPath: /var/log/kube-controller-manager.log
      name: logfile
  volumes:
  - hostPath:
      path: /etc/kubernetes
    name: k8sssl 
  - hostPath:
      path: /var/log/kube-controller-manager.log
    name: logfile
