Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created July 7, 2020 13:32
Show Gist options
  • Select an option

  • Save bharatmicrosystems/6b49f524fcea8a8148efa4963d9dbace to your computer and use it in GitHub Desktop.

Select an option

Save bharatmicrosystems/6b49f524fcea8a8148efa4963d9dbace to your computer and use it in GitHub Desktop.
kubectl create -f- <<EOF
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: nginx-priv
name: nginx-priv
spec:
replicas: 1
selector:
matchLabels:
app: nginx-priv
template:
metadata:
creationTimestamp: null
labels:
app: nginx-priv
spec:
containers:
- image: nginx
name: nginx
securityContext:
privileged: true
EOF
deployment.apps/nginx-priv created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment