Skip to content

Instantly share code, notes, and snippets.

@alazycoder101
Created October 23, 2021 09:01
Show Gist options
  • Save alazycoder101/51df7f54fbe8354ea2af6bf18982370d to your computer and use it in GitHub Desktop.
Save alazycoder101/51df7f54fbe8354ea2af6bf18982370d to your computer and use it in GitHub Desktop.
k8s service for nginx
apiVersion: v1
kind: Service
metadata:
name: nginx
annotations:
# Internal load balancer
cloud.google.com/load-balancer-type: "Internal"
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment