fix haproxy anchor pre-stop not working

The pre-stop script tries to touch /tmp/stop,
however because of a rofs, fails with permission denied
resulting in the anchor pod getting stuck in Terminating.

This PS adds the mount path /tmp to the anchor container to
resolve the issue.

Change-Id: I3380e4a62b20ae8fdc5da1a72e6794e7cc357218
This commit is contained in:
anthony.bellino 2019-09-30 13:35:23 +00:00
parent b77002339c
commit a02eaa64f9
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,8 @@ spec:
mountPath: /tmp/etc
- name: host
mountPath: /host
- name: pod-tmp
mountPath: /tmp
volumes:
- name: haproxy-bin
configMap: