Skip to content

Commit

Permalink
Bug 1825823: Add support for reading API LB backends from KUBE-API
Browse files Browse the repository at this point in the history
This PR updates OpenStack and Ovirt HAProxy static pod manifest to
enable reading API LB backend details from Kubernetes instead of
_etcd-server-ssl._tcp SRV.

Originated from openshift#1574
  • Loading branch information
Fedosin committed Apr 20, 2020
1 parent 06e85d4 commit 54c7eac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ contents:
- name: resource-dir
hostPath:
path: "/etc/kubernetes/static-pod-resources/haproxy"
- name: kubeconfig
- name: kubeconfigvarlib
hostPath:
path: "/etc/kubernetes/kubeconfig"
path: "/var/lib/kubelet"
- name: run-dir
empty-dir: {}
- name: conf-dir
Expand Down Expand Up @@ -109,7 +109,7 @@ contents:
image: {{ .Images.baremetalRuntimeCfgImage }}
command:
- monitor
- "/etc/kubernetes/kubeconfig"
- "/var/lib/kubelet/kubeconfig"
- "/config/haproxy.cfg.tmpl"
- "/etc/haproxy/haproxy.cfg"
- "--api-vip"
Expand All @@ -127,8 +127,8 @@ contents:
mountPath: "/config"
- name: chroot-host
mountPath: "/host"
- name: kubeconfig
mountPath: "/etc/kubernetes/kubeconfig"
- name: kubeconfigvarlib
mountPath: "/var/lib/kubelet"
terminationMessagePolicy: FallbackToLogsOnError
imagePullPolicy: IfNotPresent
hostNetwork: true
Expand Down
10 changes: 5 additions & 5 deletions templates/master/00-master/ovirt/files/ovirt-haproxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ contents:
- name: resource-dir
hostPath:
path: "/etc/kubernetes/static-pod-resources/haproxy"
- name: kubeconfig
- name: kubeconfigvarlib
hostPath:
path: "/etc/kubernetes/kubeconfig"
path: "/var/lib/kubelet"
- name: run-dir
empty-dir: {}
- name: conf-dir
Expand Down Expand Up @@ -89,7 +89,7 @@ contents:
image: {{ .Images.baremetalRuntimeCfgImage }}
command:
- monitor
- "/etc/kubernetes/kubeconfig"
- "/var/lib/kubelet/kubeconfig"
- "/config/haproxy.cfg.tmpl"
- "/etc/haproxy/haproxy.cfg"
- "--api-vip"
Expand All @@ -107,8 +107,8 @@ contents:
mountPath: "/config"
- name: chroot-host
mountPath: "/host"
- name: kubeconfig
mountPath: "/etc/kubernetes/kubeconfig"
- name: kubeconfigvarlib
mountPath: "/var/lib/kubelet"
terminationMessagePolicy: FallbackToLogsOnError
imagePullPolicy: IfNotPresent
hostNetwork: true
Expand Down

0 comments on commit 54c7eac

Please sign in to comment.