Skip to content

Commit

Permalink
Use hostPID: true with etcd-manager
Browse files Browse the repository at this point in the history
Addresses issues with mounting inside a container with systemd
("Failed to add PIDs to scope's control group: Invalid argument")
  • Loading branch information
justinsb committed Oct 19, 2018
1 parent 0f5825f commit 4b3e66b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/model/components/etcdmanager/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ spec:
- mountPath: /etc/hosts
name: hosts
hostNetwork: true
hostPID: true # helps with mounting volumes from inside a container
volumes:
- hostPath:
path: /
Expand Down
2 changes: 2 additions & 0 deletions pkg/model/components/etcdmanager/tests/minimal/tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Contents:
- mountPath: /var/log/etcd.log
name: varlogetcd
hostNetwork: true
hostPID: true
tolerations:
- key: CriticalAddonsOnly
operator: Exists
Expand Down Expand Up @@ -119,6 +120,7 @@ Contents:
- mountPath: /var/log/etcd.log
name: varlogetcd
hostNetwork: true
hostPID: true
tolerations:
- key: CriticalAddonsOnly
operator: Exists
Expand Down

0 comments on commit 4b3e66b

Please sign in to comment.