Skip to content

Instantly share code, notes, and snippets.

@sudermanjr
Last active November 9, 2018 04:06
Show Gist options
  • Save sudermanjr/609f7a9290cdd9768c6896db6ff36c12 to your computer and use it in GitHub Desktop.
Save sudermanjr/609f7a9290cdd9768c6896db6ff36c12 to your computer and use it in GitHub Desktop.
Kube202 NodePort Service
apiVersion: v1
kind: Service
metadata:
annotations:
name: test-service
namespace: kube202
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
sessionAffinity: None
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment