File tree Expand file tree Collapse file tree 3 files changed +17
-57
lines changed
helm/ovn-kubernetes/charts/ovnkube-identity Expand file tree Collapse file tree 3 files changed +17
-57
lines changed Original file line number Diff line number Diff line change 11# ovnkube-identity
22# starts ovnkube-identity
33# it is run on the master(s).
4- kind: Deployment
4+ kind: DaemonSet
55apiVersion: apps/v1
66metadata:
77 name: ovnkube-identity
88 # namespace set up by install
99 namespace: ovn-kubernetes
1010 annotations:
1111 kubernetes.io/description: |
12- This Deployment launches the ovnkube-identity networking component.
12+ This DaemonSet launches the ovnkube-identity networking component on control-plane nodes .
1313spec:
14- progressDeadlineSeconds: 600
15- replicas: {{ ovn_master_count | default(1|int) }}
1614 revisionHistoryLimit: 10
1715 selector:
1816 matchLabels:
1917 name: ovnkube-identity
20- strategy :
18+ updateStrategy :
2119 rollingUpdate:
22- maxSurge: 0
23- maxUnavailable: 1
20+ maxSurge: 100%
21+ maxUnavailable: 0
2422 type: RollingUpdate
2523 template:
2624 metadata:
3533 serviceAccountName: ovnkube-identity
3634 hostNetwork: true
3735 dnsPolicy: Default
38-
39- # required to be scheduled on a linux node with node-role.kubernetes.io/control-plane label and
40- # only one instance of ovnkube-control-plane pod per node
41- affinity:
42- nodeAffinity:
43- requiredDuringSchedulingIgnoredDuringExecution:
44- nodeSelectorTerms:
45- - matchExpressions:
46- - key: node-role.kubernetes.io/control-plane
47- operator: Exists
48- - key: kubernetes.io/os
49- operator: In
50- values:
51- - "linux"
36+ nodeSelector:
37+ node-role.kubernetes.io/control-plane: ""
38+ kubernetes.io/os: "linux"
5239 containers:
5340 - name: ovnkube-identity
5441 image: "{{ ovn_image | default('docker.io/ovnkube/ovn-daemonset:latest') }}"
Original file line number Diff line number Diff line change 22# ovnkube-identity
33# starts ovnkube-identity
44# it is run on the master(s).
5- kind : Deployment
5+ kind : DaemonSet
66apiVersion : apps/v1
77metadata :
88 name : ovnkube-identity
99 # namespace set up by install
1010 namespace : ovn-kubernetes
1111 annotations :
1212 kubernetes.io/description : |
13- This Deployment launches the ovnkube-identity networking component.
13+ This DaemonSet launches the ovnkube-identity networking component on control-plane nodes .
1414spec :
15- progressDeadlineSeconds : 600
16- replicas : {{ default 1 .Values.replicas }}
1715 revisionHistoryLimit : 10
1816 selector :
1917 matchLabels :
2018 name : ovnkube-identity
21- strategy :
19+ updateStrategy :
2220 rollingUpdate :
23- maxSurge : 0
24- maxUnavailable : 1
21+ maxSurge : 100%
22+ maxUnavailable : 0
2523 type : RollingUpdate
2624 template :
2725 metadata :
4038 serviceAccountName : ovnkube-identity
4139 hostNetwork : true
4240 dnsPolicy : Default
43- {{- if .Values.affinity }}
44- affinity : {{ toYaml .Values.affinity | nindent 8 }}
45- {{- end }}
41+ nodeSelector :
42+ node-role.kubernetes.io/control-plane : " "
43+ kubernetes.io/os : " linux "
4644 containers :
4745 - name : ovnkube-identity
4846 image : {{ include "getImage" . }}
7876 secretName : ovnkube-webhook-cert
7977 tolerations :
8078 - operator : " Exists"
81- {{- end }}
79+ {{- end }}
Original file line number Diff line number Diff line change 1- replicas : 1
21logLevel : 4
32logFileMaxSize : 100
43logFileMaxBackups : 5
54logFileMaxAge : 5
6-
7- # # Affinity for pod assignment
8- # # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
9- # # Required to be scheduled on a linux node and only one instance of ovnkube-identity pod per node
10- affinity :
11- nodeAffinity :
12- requiredDuringSchedulingIgnoredDuringExecution :
13- nodeSelectorTerms :
14- - matchExpressions :
15- - key : node-role.kubernetes.io/control-plane
16- operator : Exists
17- - key : kubernetes.io/os
18- operator : In
19- values :
20- - " linux"
21- podAntiAffinity :
22- requiredDuringSchedulingIgnoredDuringExecution :
23- - labelSelector :
24- matchExpressions :
25- - key : name
26- operator : In
27- values :
28- - ovnkube-identity
29- topologyKey : kubernetes.io/hostname
You can’t perform that action at this time.
0 commit comments