Skip to content

Commit

Permalink
OpenStack: Add security context for ipfilters to run
Browse files Browse the repository at this point in the history
Partial port of openshift#1768 to OpenStack platform
  • Loading branch information
mandre authored and vrutkovs committed Oct 13, 2020
1 parent 27db4fe commit bed533b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions templates/common/openstack/files/openstack-keepalived.yaml
Expand Up @@ -21,7 +21,10 @@ contents:
path: "/etc/kubernetes/static-pod-resources/keepalived/scripts"
- name: kubeconfig
hostPath:
path: "/etc/kubernetes/kubeconfig"
path: "/etc/kubernetes"
- name: kubeconfigvarlib
hostPath:
path: "/var/lib/kubelet"
- name: conf-dir
hostPath:
path: "/etc/keepalived"
Expand Down Expand Up @@ -49,7 +52,7 @@ contents:
resources: {}
volumeMounts:
- name: kubeconfig
mountPath: "/etc/kubernetes/kubeconfig"
mountPath: "/etc/kubernetes"
- name: script-dir
mountPath: "/config"
- name: conf-dir
Expand Down Expand Up @@ -118,10 +121,17 @@ contents:
terminationMessagePolicy: FallbackToLogsOnError
imagePullPolicy: IfNotPresent
- name: keepalived-monitor
securityContext:
privileged: true
image: {{ .Images.baremetalRuntimeCfgImage }}
env:
- name: ENABLE_UNICAST
value: "no"
- name: IS_BOOTSTRAP
value: "no"
command:
- dynkeepalived
- "/etc/kubernetes/kubeconfig"
- "/var/lib/kubelet/kubeconfig"
- "/config/keepalived.conf.tmpl"
- "/etc/keepalived/keepalived.conf"
- "--api-vip"
Expand All @@ -137,8 +147,8 @@ contents:
volumeMounts:
- name: resource-dir
mountPath: "/config"
- name: kubeconfig
mountPath: "/etc/kubernetes/kubeconfig"
- name: kubeconfigvarlib
mountPath: "/var/lib/kubelet"
- name: conf-dir
mountPath: "/etc/keepalived"
- name: run-dir
Expand Down

0 comments on commit bed533b

Please sign in to comment.