Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jirkapinkas/c69ead93c7fb30d4d2832c8ee1a07efd to your computer and use it in GitHub Desktop.
Save jirkapinkas/c69ead93c7fb30d4d2832c8ee1a07efd to your computer and use it in GitHub Desktop.
nginx kubernetes service
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