Skip to content

Instantly share code, notes, and snippets.

@reyhansofian
Created August 21, 2019 17:04
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 reyhansofian/85014c86d2853b0af49ccdfdaddad5a0 to your computer and use it in GitHub Desktop.
Save reyhansofian/85014c86d2853b0af49ccdfdaddad5a0 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: hello-world-service
spec:
ports:
- name: public
port: 80
targetPort: 80
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world-deployment
spec:
replicas: 1
template:
spec:
containers:
- image: hello-world-deployment
imagePullPolicy: Always
name: hello-world-deployment
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment