Skip to content

Instantly share code, notes, and snippets.

@leandronsp
Created October 23, 2021 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leandronsp/b4cbcd422a23aa7a00bffd8f46306a7f to your computer and use it in GitHub Desktop.
Save leandronsp/b4cbcd422a23aa7a00bffd8f46306a7f to your computer and use it in GitHub Desktop.
NGINX on Kubernetes

Create the pod on the cluster

kubectl apply -f nginx-pod.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-pod
spec:
replicas: 1
selector:
matchLabels:
app: nginx-pod
template:
metadata:
labels:
app: nginx-pod
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment