Skip to content

Commit

Permalink
Add simple deployment YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Berry committed Jun 10, 2019
1 parent bee9e8b commit 282ac9e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Chapter_Two/simple/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuard-deployment
labels:
app: kuard
spec:
replicas: 3
selector:
matchLabels:
app: kuard
template:
metadata:
labels:
app: kuard
spec:
containers:
- name: kuard
image: gcr.io/kuar-demo/kuard-amd64:purple
ports:
- containerPort: 8080
14 changes: 14 additions & 0 deletions Chapter_Two/simple/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: kuard-service
labels:
app: kuard
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: kuard
type: LoadBalancer

0 comments on commit 282ac9e

Please sign in to comment.