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

kube-ovn-controller: fix ovn ic log directory not mounted to hostpath #3322

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions charts/templates/controller-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ spec:
readOnly: true
- mountPath: /var/log/kube-ovn
name: kube-ovn-log
# ovn-ic log directory
- mountPath: /var/log/ovn
name: ovn-log
- mountPath: /var/run/tls
name: kube-ovn-tls
readinessProbe:
Expand Down Expand Up @@ -168,6 +171,9 @@ spec:
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
- name: ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
- name: kube-ovn-tls
secret:
optional: true
Expand Down
6 changes: 6 additions & 0 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3977,6 +3977,9 @@ spec:
readOnly: true
- mountPath: /var/log/kube-ovn
name: kube-ovn-log
# ovn-ic log directory
- mountPath: /var/log/ovn
name: ovn-log
- mountPath: /var/run/tls
name: kube-ovn-tls
readinessProbe:
Expand Down Expand Up @@ -4009,6 +4012,9 @@ spec:
- name: kube-ovn-log
hostPath:
path: $LOG_DIR/kube-ovn
- name: ovn-log
hostPath:
path: $LOG_DIR/ovn
- name: kube-ovn-tls
secret:
optional: true
Expand Down
24 changes: 15 additions & 9 deletions yamls/kube-ovn-dual-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ spec:
readOnly: true
- mountPath: /var/log/kube-ovn
name: kube-ovn-log
# ovn-ic log directory
- mountPath: /var/log/ovn
name: ovn-log
- mountPath: /var/run/tls
name: kube-ovn-tls
readinessProbe:
Expand Down Expand Up @@ -130,7 +133,10 @@ spec:
path: /etc/localtime
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
path: /var/log/kube-ovn
- name: ovn-log
hostPath:
path: /var/log/ovn
- name: kube-ovn-tls
secret:
optional: true
Expand Down Expand Up @@ -315,13 +321,13 @@ spec:
path: /var/run/dbus
- name: host-log-ovs
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/openvswitch
path: /var/log/openvswitch
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
path: /var/log/kube-ovn
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: localtime
hostPath:
path: /etc/localtime
Expand Down Expand Up @@ -433,13 +439,13 @@ spec:
path: /etc/origin/openvswitch
- name: host-log-ovs
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/openvswitch
path: /var/log/openvswitch
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
path: /var/log/kube-ovn
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: localtime
hostPath:
path: /etc/localtime
Expand Down Expand Up @@ -574,7 +580,7 @@ spec:
path: /etc/origin/ovn
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: localtime
hostPath:
path: /etc/localtime
Expand All @@ -584,7 +590,7 @@ spec:
secretName: kube-ovn-tls
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
path: /var/log/kube-ovn
---
kind: Service
apiVersion: v1
Expand Down
24 changes: 15 additions & 9 deletions yamls/kube-ovn-ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ spec:
readOnly: true
- mountPath: /var/log/kube-ovn
name: kube-ovn-log
# ovn-ic log directory
- mountPath: /var/log/ovn
name: ovn-log
- mountPath: /var/run/tls
name: kube-ovn-tls
readinessProbe:
Expand Down Expand Up @@ -130,7 +133,10 @@ spec:
path: /etc/localtime
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
path: /var/log/kube-ovn
- name: ovn-log
hostPath:
path: /var/log/ovn
- name: kube-ovn-tls
secret:
optional: true
Expand Down Expand Up @@ -315,13 +321,13 @@ spec:
path: /var/run/dbus
- name: host-log-ovs
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/openvswitch
path: /var/log/openvswitch
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
path: /var/log/kube-ovn
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: localtime
hostPath:
path: /etc/localtime
Expand Down Expand Up @@ -433,13 +439,13 @@ spec:
path: /etc/origin/openvswitch
- name: host-log-ovs
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/openvswitch
path: /var/log/openvswitch
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
path: /var/log/kube-ovn
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: localtime
hostPath:
path: /etc/localtime
Expand Down Expand Up @@ -574,7 +580,7 @@ spec:
path: /etc/origin/ovn
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: localtime
hostPath:
path: /etc/localtime
Expand All @@ -584,7 +590,7 @@ spec:
secretName: kube-ovn-tls
- name: kube-ovn-log
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/kube-ovn
path: /var/log/kube-ovn
---
kind: Service
apiVersion: v1
Expand Down
6 changes: 6 additions & 0 deletions yamls/kube-ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ spec:
readOnly: true
- mountPath: /var/log/kube-ovn
name: kube-ovn-log
# ovn-ic log directory
- mountPath: /var/log/ovn
name: ovn-log
- mountPath: /var/run/tls
name: kube-ovn-tls
readinessProbe:
Expand Down Expand Up @@ -133,6 +136,9 @@ spec:
- name: kube-ovn-log
hostPath:
path: /var/log/kube-ovn
- name: ovn-log
hostPath:
path: /var/log/ovn
- name: kube-ovn-tls
secret:
optional: true
Expand Down
8 changes: 4 additions & 4 deletions yamls/ovn-dpdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ spec:
path: /etc/origin/ovn
- name: host-log-ovs
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/openvswitch
path: /var/log/openvswitch
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: kube-ovn-tls
secret:
optional: true
Expand Down Expand Up @@ -438,10 +438,10 @@ spec:
path: /etc/origin/ovn
- name: host-log-ovs
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/openvswitch
path: /var/log/openvswitch
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: host-config-ovs
hostPath:
path: /opt/ovs-config
Expand Down
8 changes: 4 additions & 4 deletions yamls/ovn-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ spec:
path: /etc/origin/ovn
- name: host-log-ovs
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/openvswitch
path: /var/log/openvswitch
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: localtime
hostPath:
path: /etc/localtime
Expand Down Expand Up @@ -358,10 +358,10 @@ spec:
path: /etc/origin/ovn
- name: host-log-ovs
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/openvswitch
path: /var/log/openvswitch
- name: host-log-ovn
hostPath:
path: {{ .Values.log_conf.LOG_DIR }}/ovn
path: /var/log/ovn
- name: localtime
hostPath:
path: /etc/localtime
Expand Down