Created
July 29, 2020 12:23
-
-
Save jirkapinkas/c69ead93c7fb30d4d2832c8ee1a07efd to your computer and use it in GitHub Desktop.
nginx kubernetes service
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: my-service | |
spec: | |
type: LoadBalancer | |
# type: NodePort | |
selector: | |
app: nginx | |
ports: | |
- protocol: TCP | |
port: 80 | |
# targetPort: 80 | |
# nodePort: 30100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment