Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Example Voting (Instavote) App
=========

This is a sample voting app.

Getting started
---------------

Expand Down
2 changes: 2 additions & 0 deletions depoly/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This is a deployment code for Kubernetes
This code would be used by Flux to deploy to a Kubernetes Env.
23 changes: 23 additions & 0 deletions depoly/redis/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: redis
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: redis
spec:
containers:
- image: redis:alpine
name: redis
resources: {}
16 changes: 16 additions & 0 deletions depoly/redis/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: redis
name: redis
spec:
ports:
- name: "6379"
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis
type: ClusterIP
25 changes: 25 additions & 0 deletions depoly/vote/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: vote
tier: front
name: vote
spec:
replicas: 6
selector:
matchLabels:
app: vote
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: vote
tier: front
spec:
containers:
- image: schoolofdevops/vote:v1
name: vote
resources: {}
18 changes: 18 additions & 0 deletions depoly/vote/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: vote
tier: front
name: vote
spec:
ports:
- name: "80"
nodePort: 30000
port: 80
protocol: TCP
targetPort: 80
selector:
app: vote
type: NodePort