Skip to content

Instantly share code, notes, and snippets.

@MJjainam
Created June 23, 2021 16:10
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 MJjainam/42d669e0087fc1a6e8bb7436adac998c to your computer and use it in GitHub Desktop.
Save MJjainam/42d669e0087fc1a6e8bb7436adac998c to your computer and use it in GitHub Desktop.
K8s Service file for Ipv6
apiVersion: v1
kind: Service
metadata:
name: nginx-svc
spec:
ipFamilies:
- IPv6
ipFamilyPolicy: SingleStack
ports:
- name: 32323-80
port: 32323
protocol: TCP
targetPort: 80 <Change this>
nodePort: 32323
selector:
run: nginx <Change this>
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment