-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46920 from everpeace/dev-1.31-KEP-3619-Supplement…
…alGroupsPolicy [dev-1.31] KEP-3619: Fine-grained SupplementalGroups control
- Loading branch information
Showing
5 changed files
with
229 additions
and
2 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...erence/command-line-tools-reference/feature-gates/supplemental-groups-policy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: SupplementalGroupsPolicy | ||
content_type: feature_gate | ||
_build: | ||
list: never | ||
render: false | ||
|
||
stages: | ||
- stage: alpha | ||
defaultValue: false | ||
fromVersion: "1.31" | ||
--- | ||
Enables support for fine-grained SupplementalGroups control. | ||
For more details, see [Configure fine-grained SupplementalGroups control for a Pod](/content/en/docs/tasks/configure-pod-container/security-context/#supplementalgroupspolicy). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: security-context-demo | ||
spec: | ||
securityContext: | ||
runAsUser: 1000 | ||
runAsGroup: 3000 | ||
supplementalGroups: [4000] | ||
containers: | ||
- name: sec-ctx-demo | ||
image: registry.k8s.io/e2e-test-images/agnhost:2.45 | ||
command: [ "sh", "-c", "sleep 1h" ] | ||
securityContext: | ||
allowPrivilegeEscalation: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: security-context-demo | ||
spec: | ||
securityContext: | ||
runAsUser: 1000 | ||
runAsGroup: 3000 | ||
supplementalGroups: [4000] | ||
supplementalGroupsPolicy: Strict | ||
containers: | ||
- name: sec-ctx-demo | ||
image: registry.k8s.io/e2e-test-images/agnhost:2.45 | ||
command: [ "sh", "-c", "sleep 1h" ] | ||
securityContext: | ||
allowPrivilegeEscalation: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters