32 lines
824 B
YAML
32 lines
824 B
YAML
|
apiVersion: v1
|
||
|
kind: ReplicationController
|
||
|
metadata:
|
||
|
name: calico-policy-controller
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
k8s-app: calico-policy
|
||
|
kubernetes.io/cluster-service: "true"
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
k8s-app: calico-policy
|
||
|
template:
|
||
|
metadata:
|
||
|
name: calico-policy-controller
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
kubernetes.io/cluster-service: "true"
|
||
|
k8s-app: calico-policy
|
||
|
spec:
|
||
|
hostNetwork: true
|
||
|
containers:
|
||
|
- name: calico-policy-controller
|
||
|
image: calico/kube-policy-controller:v0.2.0
|
||
|
env:
|
||
|
- name: ETCD_ENDPOINTS
|
||
|
value: "http://10.0.0.17:6666"
|
||
|
- name: K8S_API
|
||
|
value: "https://kubernetes.default:443"
|
||
|
- name: CONFIGURE_ETC_HOSTS
|
||
|
value: "true"
|