Skip to content

Commit

Permalink
K8s deployment YAML
Browse files Browse the repository at this point in the history
Karthik, can you create a YAML like the above to deploy your container on a K8s cluster as a NodePool service?
  • Loading branch information
mikeraab authored May 18, 2018
1 parent 2a59b5e commit ee41647
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
spec:
selector:
matchLabels:
app: helloworld
replicas: 1
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: helloworld
image: karthequian/helloworld:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: helloworld
spec:
type: NodePort
selector:
app: helloworld
ports:
- name: client
protocol: TCP
port: 80
nodePort: 32080
selector:
app: helloworld

0 comments on commit ee41647

Please sign in to comment.