Skip to content

Instantly share code, notes, and snippets.

@lusoal
Created November 10, 2022 20:25
Show Gist options
  • Select an option

  • Save lusoal/cfec2144e81ed8aeb1968752b77093f2 to your computer and use it in GitHub Desktop.

Select an option

Save lusoal/cfec2144e81ed8aeb1968752b77093f2 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
strategy: {}
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx:latest
name: nginx
ports:
- containerPort: 80
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
type: LoadBalancer
status:
loadBalancer: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment