You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

  1. apiVersion: extensions/v1beta1
  2. kind: ReplicaSet
  3. metadata:
  4. name: calico-policy-controller
  5. namespace: kube-system
  6. labels:
  7. k8s-app: calico-policy
  8. kubernetes.io/cluster-service: "true"
  9. spec:
  10. replicas: 1
  11. selector:
  12. matchLabels:
  13. kubernetes.io/cluster-service: "true"
  14. k8s-app: calico-policy
  15. template:
  16. metadata:
  17. name: calico-policy-controller
  18. namespace: kube-system
  19. labels:
  20. kubernetes.io/cluster-service: "true"
  21. k8s-app: calico-policy
  22. spec:
  23. hostNetwork: true
  24. containers:
  25. - name: calico-policy-controller
  26. image: calico/kube-policy-controller:latest
  27. env:
  28. - name: ETCD_ENDPOINTS
  29. value: "{{ etcd_endpoint }}"
  30. # Location of the Kubernetes API - this shouldn't need to be
  31. # changed so long as it is used in conjunction with
  32. # CONFIGURE_ETC_HOSTS="true".
  33. - name: K8S_API
  34. value: "https://kubernetes.default:443"
  35. # Configure /etc/hosts within the container to resolve
  36. # the kubernetes.default Service to the correct clusterIP
  37. # using the environment provided by the kubelet.
  38. # This removes the need for KubeDNS to resolve the Service.
  39. - name: CONFIGURE_ETC_HOSTS
  40. value: "true"