Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(addons/networking.projectcalico.org) calico kube-controllers is needed in CRD mode #7517

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,6 @@ subjects:
namespace: kube-system
---

# This manifest scales the Calico Kubernetes controllers down to size 0.
# They are not needed in CRD mode.
# See https://github.com/projectcalico/kube-controllers
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -458,7 +455,7 @@ spec:
matchLabels:
k8s-app: calico-kube-controllers
# The controllers can only have a single active instance.
replicas: 0
replicas: 1
strategy:
type: Recreate
template:
Expand All @@ -469,12 +466,17 @@ spec:
k8s-app: calico-kube-controllers
role.kubernetes.io/networking: "1"
spec:
hostNetwork: true
serviceAccount: calico-node
serviceAccountName: calico-node
containers:
- name: calico-kube-controllers
image: calico/kube-controllers:v3.8.0
initContainers:
- name: migrate
image: calico/upgrade:v1.0.5
env:
- name: DATASTORE_TYPE
value: kubernetes
- name: ENABLED_CONTROLLERS
value: policy,namespace,serviceaccount,workloadendpoint,node

---

Expand Down