Created
October 23, 2021 09:01
-
-
Save alazycoder101/51df7f54fbe8354ea2af6bf18982370d to your computer and use it in GitHub Desktop.
k8s service for nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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