Skip to content

Instantly share code, notes, and snippets.

@ChillarAnand
Created May 5, 2020 00:36
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 ChillarAnand/55e16f66d9397ce8bf1f3c2e95922500 to your computer and use it in GitHub Desktop.
Save ChillarAnand/55e16f66d9397ce8bf1f3c2e95922500 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: hello-kubernetes-first
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
selector:
app: hello-kubernetes-first
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-kubernetes-first
spec:
replicas: 3
selector:
matchLabels:
app: hello-kubernetes-first
template:
metadata:
labels:
app: hello-kubernetes-first
spec:
containers:
- name: hello-kubernetes
image: paulbouwer/hello-kubernetes:1.7
ports:
- containerPort: 8080
env:
- name: MESSAGE
value: Hello from the first deployment!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment