forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kube-up: move Calico policy components off master, and add support fo…
…r GCI master
- Loading branch information
1 parent
d3dbe9c
commit 568fb74
Showing
12 changed files
with
162 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Maintainers | ||
|
||
Matt Dupre <matt@projectcalico.org>, Casey Davenport <casey@tigera.io> and committers to the https://github.com/projectcalico/k8s-policy repository. | ||
|
||
|
||
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/cluster/addons/calico-policy-controller/MAINTAINERS.md?pixel)]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Calico Policy Controller | ||
============== | ||
|
||
Calico Policy Controller is an implementation of the Kubernetes network policy API. | ||
|
||
Learn more at: | ||
- https://github.com/projectcalico/k8s-policy | ||
- http://kubernetes.io/docs/user-guide/networkpolicies/ | ||
|
||
|
||
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/cluster/addons/calico-policy-controller/README.md?pixel)]() |
43 changes: 43 additions & 0 deletions
43
cluster/addons/calico-policy-controller/calico-etcd-petset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: "apps/v1alpha1" | ||
kind: PetSet | ||
metadata: | ||
name: calico-etcd | ||
namespace: kube-system | ||
labels: | ||
kubernetes.io/cluster-service: "true" | ||
k8s-app: calico-etcd | ||
spec: | ||
serviceName: calico-etcd | ||
replicas: 1 | ||
template: | ||
metadata: | ||
annotations: | ||
pod.alpha.kubernetes.io/initialized: "true" | ||
labels: | ||
kubernetes.io/cluster-service: "true" | ||
k8s-app: calico-etcd | ||
spec: | ||
hostNetwork: true | ||
containers: | ||
- name: calico-etcd | ||
image: gcr.io/google_containers/etcd:2.2.1 | ||
env: | ||
- name: CALICO_ETCD_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.podIP | ||
command: ["/bin/sh","-c"] | ||
args: ["/usr/local/bin/etcd --name=calico --data-dir=/var/etcd/calico-data --advertise-client-urls=http://$CALICO_ETCD_IP:6666 --listen-client-urls=http://0.0.0.0:6666 --listen-peer-urls=http://0.0.0.0:6667"] | ||
volumeMounts: | ||
- name: var-etcd | ||
mountPath: /var/etcd | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: var-etcd | ||
annotations: | ||
volume.alpha.kubernetes.io/storage-class: anything | ||
spec: | ||
accessModes: [ "ReadWriteOnce" ] | ||
resources: | ||
requests: | ||
storage: 1Gi |
14 changes: 14 additions & 0 deletions
14
cluster/addons/calico-policy-controller/calico-etcd-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
k8s-app: calico-etcd | ||
kubernetes.io/cluster-service: "true" | ||
name: calico-etcd | ||
namespace: kube-system | ||
spec: | ||
clusterIP: 10.0.0.17 | ||
ports: | ||
- port: 6666 | ||
selector: | ||
k8s-app: calico-etcd |
31 changes: 31 additions & 0 deletions
31
cluster/addons/calico-policy-controller/calico-policy-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: calico-node | ||
namespace: kube-system | ||
labels: | ||
kubernetes.io/cluster-service: "true" | ||
k8s-app: calico-node | ||
spec: | ||
hostNetwork: true | ||
containers: | ||
- name: calico-node | ||
image: quay.io/calico/node:v0.20.0 | ||
env: | ||
- name: ETCD_ENDPOINTS | ||
value: "http://10.0.0.17:6666" | ||
- name: CALICO_NETWORKING | ||
value: "false" | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- mountPath: /lib/modules | ||
name: lib-modules | ||
readOnly: true | ||
- mountPath: /var/log/calico | ||
name: var-log-calico | ||
readOnly: false | ||
- mountPath: /var/run/calico | ||
name: var-run-calico | ||
readOnly: false | ||
volumes: | ||
- name: lib-modules | ||
hostPath: | ||
path: /lib/modules | ||
- name: var-run-calico | ||
hostPath: | ||
path: /var/run/calico | ||
- name: var-log-calico | ||
hostPath: | ||
path: /var/log/calico |
36 changes: 0 additions & 36 deletions
36
cluster/saltbase/salt/calico/calico-policy-controller.manifest
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters