Created
August 21, 2019 17:04
-
-
Save reyhansofian/85014c86d2853b0af49ccdfdaddad5a0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: 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