apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: deploy-pod-sec-uid | |
labels: | |
app: helloworld | |
version: v1 | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: helloworld | |
version: v1 | |
template: | |
metadata: | |
labels: | |
app: helloworld | |
version: v1 | |
spec: | |
securityContext: | |
runAsUser: 1337 | |
containers: | |
- name: helloworld | |
image: docker.io/istio/examples-helloworld-v1 | |
resources: | |
requests: | |
cpu: "100m" | |
imagePullPolicy: IfNotPresent #Always | |
ports: | |
- containerPort: 5000 |