diff --git a/charts/kube-ovn/templates/central-deploy.yaml b/charts/kube-ovn/templates/central-deploy.yaml index 0f4044b49af..f51f30aee52 100644 --- a/charts/kube-ovn/templates/central-deploy.yaml +++ b/charts/kube-ovn/templates/central-deploy.yaml @@ -44,7 +44,7 @@ spec: - name: ovn-central image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.repository }}:{{ .Values.global.images.kubeovn.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: + args: - /kube-ovn/start-db.sh securityContext: capabilities: diff --git a/charts/kube-ovn/templates/ic-controller-deploy.yaml b/charts/kube-ovn/templates/ic-controller-deploy.yaml index 0d0f225fb1d..08e6308a04f 100644 --- a/charts/kube-ovn/templates/ic-controller-deploy.yaml +++ b/charts/kube-ovn/templates/ic-controller-deploy.yaml @@ -45,8 +45,8 @@ spec: - name: ovn-ic-controller image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.repository }}:{{ .Values.global.images.kubeovn.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: ["/kube-ovn/start-ic-controller.sh"] args: + - /kube-ovn/start-ic-controller.sh - --log_file=/var/log/kube-ovn/kube-ovn-ic-controller.log - --log_file_max_size=0 - --logtostderr=false diff --git a/charts/kube-ovn/templates/monitor-deploy.yaml b/charts/kube-ovn/templates/monitor-deploy.yaml index b938ebfedd5..8a570e5dc5c 100644 --- a/charts/kube-ovn/templates/monitor-deploy.yaml +++ b/charts/kube-ovn/templates/monitor-deploy.yaml @@ -42,8 +42,8 @@ spec: - name: kube-ovn-monitor image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.repository }}:{{ .Values.global.images.kubeovn.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: ["/kube-ovn/start-ovn-monitor.sh"] args: + - /kube-ovn/start-ovn-monitor.sh - --log_file=/var/log/kube-ovn/kube-ovn-monitor.log - --logtostderr=false - --alsologtostderr=true diff --git a/charts/kube-ovn/templates/ovncni-ds.yaml b/charts/kube-ovn/templates/ovncni-ds.yaml index 1dfedf1a8bb..d3d14edce19 100644 --- a/charts/kube-ovn/templates/ovncni-ds.yaml +++ b/charts/kube-ovn/templates/ovncni-ds.yaml @@ -47,10 +47,8 @@ spec: - name: cni-server image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.repository }}:{{ .Values.global.images.kubeovn.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: - - bash - - /kube-ovn/start-cniserver.sh args: + - /kube-ovn/start-cniserver.sh - --enable-mirror={{- .Values.debug.ENABLE_MIRROR }} - --mirror-iface={{- .Values.debug.MIRROR_IFACE }} - --node-switch={{ .Values.networking.NODE_SUBNET }} diff --git a/charts/kube-ovn/templates/ovsovn-ds.yaml b/charts/kube-ovn/templates/ovsovn-ds.yaml index 72a5eb40e22..92c600d726e 100644 --- a/charts/kube-ovn/templates/ovsovn-ds.yaml +++ b/charts/kube-ovn/templates/ovsovn-ds.yaml @@ -47,7 +47,7 @@ spec: {{- if .Values.DPDK }} command: ["/kube-ovn/start-ovs-dpdk.sh"] {{- else }} - command: + args: {{- if .Values.DISABLE_MODULES_MANAGEMENT }} - /bin/sh - -ec diff --git a/charts/kube-ovn/templates/pinger-ds.yaml b/charts/kube-ovn/templates/pinger-ds.yaml index f54b276ad11..f59dccc12cb 100644 --- a/charts/kube-ovn/templates/pinger-ds.yaml +++ b/charts/kube-ovn/templates/pinger-ds.yaml @@ -32,9 +32,8 @@ spec: containers: - name: pinger image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.repository }}:{{ .Values.global.images.kubeovn.tag }} - command: - - /kube-ovn/kube-ovn-pinger args: + - /kube-ovn/kube-ovn-pinger - --external-address= {{- if eq .Values.networking.NET_STACK "dual_stack" -}} {{ .Values.dual_stack.PINGER_EXTERNAL_ADDRESS }} diff --git a/dist/images/install.sh b/dist/images/install.sh index 09f8f7b5c41..598e8b2cad0 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -3308,7 +3308,7 @@ spec: - name: ovn-central image: "$REGISTRY/kube-ovn:$VERSION" imagePullPolicy: $IMAGE_PULL_POLICY - command: + args: - /kube-ovn/start-db.sh securityContext: capabilities: @@ -3632,7 +3632,7 @@ spec: - name: openvswitch image: "$REGISTRY/kube-ovn:$VERSION" imagePullPolicy: $IMAGE_PULL_POLICY - command: + args: - /kube-ovn/start-ovs.sh securityContext: runAsUser: 0 @@ -4160,10 +4160,8 @@ spec: - name: cni-server image: "$REGISTRY/kube-ovn:$VERSION" imagePullPolicy: $IMAGE_PULL_POLICY - command: - - bash - - /kube-ovn/start-cniserver.sh args: + - /kube-ovn/start-cniserver.sh - --enable-mirror=$ENABLE_MIRROR - --enable-arp-detect-ip-conflict=$ENABLE_ARP_DETECT_IP_CONFLICT - --encap-checksum=true @@ -4461,8 +4459,8 @@ spec: - name: kube-ovn-monitor image: "$REGISTRY/kube-ovn:$VERSION" imagePullPolicy: $IMAGE_PULL_POLICY - command: ["/kube-ovn/start-ovn-monitor.sh"] args: + - /kube-ovn/start-ovn-monitor.sh - --log_file=/var/log/kube-ovn/kube-ovn-monitor.log - --logtostderr=false - --alsologtostderr=true @@ -4671,8 +4669,8 @@ spec: - name: ovn-ic-controller image: "$REGISTRY/kube-ovn:$VERSION" imagePullPolicy: $IMAGE_PULL_POLICY - command: ["/kube-ovn/start-ic-controller.sh"] args: + - /kube-ovn/start-ic-controller.sh - --log_file=/var/log/kube-ovn/kube-ovn-ic-controller.log - --log_file_max_size=0 - --logtostderr=false