Skip to content

Commit

Permalink
Netchecker: use local etcd instead of kubernetes v1beta1 crds which a…
Browse files Browse the repository at this point in the history
…re no longer suported by kube 1.22+
  • Loading branch information
cristicalin committed Oct 14, 2021
1 parent 4f9f026 commit a720942
Showing 1 changed file with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
app: netchecker-server
spec:
priorityClassName: {% if netcheck_namespace == 'kube-system' %}system-cluster-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
volumes:
- name: etcd-data
emptyDir: {}
containers:
- name: netchecker-server
image: "{{ netcheck_server_image_repo }}:{{ netcheck_server_image_tag }}"
Expand All @@ -34,10 +37,22 @@ spec:
ports:
- containerPort: 8081
args:
- "-v=5"
- "-logtostderr"
- "-kubeproxyinit"
- "-endpoint=0.0.0.0:8081"
- -v=5
- -logtostderr
- -kubeproxyinit=false
- -endpoint=0.0.0.0:8081
- -etcd-endpoints=https://127.0.0.1:2379
- name: etcd
image: "{{ etcd_image_repo }}:{{ etcd_image_tag }}"
imagePullPolicy: {{ k8s_image_pull_policy }}
args:
- --listen-client-urls=http://127.0.0.1:2379
- --advertise-client-urls=http://127.0.0.1:2379
- --listen-metrics=http://127.0.0.1:2381
- --data-dir=/var/lib/etcd
volumeMounts:
- mountPath: /var/lib/etcd
name: etcd-data
tolerations:
- effect: NoSchedule
operator: Exists
Expand Down

0 comments on commit a720942

Please sign in to comment.