Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions labs/2_IntroKubernetes/hello-world-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,17 @@ spec:
memory: 30Mi
requests:
cpu: 1m
memory: 10Mi
memory: 10Mi
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop: ["ALL"]
seccompProfile:
type: "RuntimeDefault"
runAsUser: 999
imagePullSecrets:
- name: icr
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
8 changes: 8 additions & 0 deletions labs/2_IntroKubernetes/hello-world-create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@ spec:
image: us.icr.io/<my_namespace>/hello-world:1
ports:
- containerPort: 8080
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop: ["ALL"]
seccompProfile:
type: "RuntimeDefault"
runAsUser: 999
imagePullSecrets:
- name: icr