Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Created December 3, 2022 18:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save erangaeb/467b872ea7fca1ef39267d935508e31e to your computer and use it in GitHub Desktop.
Save erangaeb/467b872ea7fca1ef39267d935508e31e to your computer and use it in GitHub Desktop.
nginx deployment
apiVersion: v1
kind: Pod
metadata:
name: nginx2
labels:
app: nginx2
app.kubernetes.io/component: blackbox
spec:
containers:
- name: nginx2
image: nginx
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx2
labels:
name: nginx2
app.kubernetes.io/component: blackbox
spec:
ports:
- port: 80
selector:
app: nginx2
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment