Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 7d6f95a

Browse files
authored
Merge pull request #1950 from hasbro17/haseeb/update-CHANGELOG-security-context
*: update CHANGELOG and add spec example for SecurityContext
2 parents 73f1141 + 84e1525 commit 7d6f95a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
### Added
44

5+
- Added the field `spec.pod.securityContext` to `EtcdCluster` that allows setting a specific [PodSecurityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) for the etcd pods. [#1949](https://github.com/coreos/etcd-operator/pull/1949)
6+
57
### Changed
68

79
- Update Go version to 1.10
810
- Build `gcr.io/coreos-k8s-scale-testing/etcd-operator-builder:0.4.1-2` container
911
with Go 1.10 and dep 0.4.1
12+
- etcd pod containers no longer run with a non-root security context by default. This setting can be configured per cluster via the PodPolicy.
1013

1114
### Removed
1215

doc/user/spec_examples.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,21 @@ spec:
8383
prometheus.io/port: "2379"
8484
```
8585
86+
## Custom pod security context
87+
88+
For more information on pod security context see the Kubernetes [docs][pod-security-context].
89+
90+
```yaml
91+
spec:
92+
size: 3
93+
pod:
94+
securityContext:
95+
runAsNonRoot: true
96+
runAsUser: 9000
97+
# The FSGroup is needed to let the etcd container access mounted volumes
98+
fsGroup: 9000
99+
```
100+
86101
87102
[cluster-tls]: cluster_tls.md
103+
[pod-security-context]: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod

0 commit comments

Comments
 (0)