diff --git a/manifests/openstack/keepalived.yaml b/manifests/openstack/keepalived.yaml index 281ef32e3b..8e3cd28162 100644 --- a/manifests/openstack/keepalived.yaml +++ b/manifests/openstack/keepalived.yaml @@ -18,6 +18,9 @@ spec: path: "/etc/kubernetes/kubeconfig" - name: conf-dir empty-dir: {} + - name: manifests + hostPath: + path: "/opt/openshift/manifests" initContainers: - name: render-config image: {{ .Images.BaremetalRuntimeCfgBootstrap }} @@ -34,6 +37,8 @@ spec: - "/config" - "--out-dir" - "/etc/keepalived" + - "--cluster-config" + - "/opt/openshift/manifests/cluster-config.yaml" resources: {} volumeMounts: - name: resource-dir @@ -42,6 +47,8 @@ spec: mountPath: "/etc/kubernetes/kubeconfig" - name: conf-dir mountPath: "/etc/keepalived" + - name: manifests + mountPath: "/opt/openshift/manifests" imagePullPolicy: IfNotPresent containers: - name: keepalived diff --git a/pkg/operator/assets/bindata.go b/pkg/operator/assets/bindata.go index 80624c6bd9..0d9e57af1c 100644 --- a/pkg/operator/assets/bindata.go +++ b/pkg/operator/assets/bindata.go @@ -1822,6 +1822,9 @@ spec: path: "/etc/kubernetes/kubeconfig" - name: conf-dir empty-dir: {} + - name: manifests + hostPath: + path: "/opt/openshift/manifests" initContainers: - name: render-config image: {{ .Images.BaremetalRuntimeCfgBootstrap }} @@ -1838,6 +1841,8 @@ spec: - "/config" - "--out-dir" - "/etc/keepalived" + - "--cluster-config" + - "/opt/openshift/manifests/cluster-config.yaml" resources: {} volumeMounts: - name: resource-dir @@ -1846,6 +1851,8 @@ spec: mountPath: "/etc/kubernetes/kubeconfig" - name: conf-dir mountPath: "/etc/keepalived" + - name: manifests + mountPath: "/opt/openshift/manifests" imagePullPolicy: IfNotPresent containers: - name: keepalived