Skip to content

Instantly share code, notes, and snippets.

@Harsimran1
Created December 12, 2019 21:50
Show Gist options
  • Save Harsimran1/bba7b60dcce2d6f9e93c56c4ec09d2ca to your computer and use it in GitHub Desktop.
Save Harsimran1/bba7b60dcce2d6f9e93c56c4ec09d2ca to your computer and use it in GitHub Desktop.
k8s deployment.yaml with unprivileged nginx user
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginxinc/nginx-unprivileged:1.16.1-alpine
ports:
- containerPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment