-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding yaml files for votingapp deployment
- Loading branch information
Christof
committed
Oct 19, 2017
1 parent
49d2845
commit afd20c9
Showing
5 changed files
with
210 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: voting-app-backend-svc | ||
spec: | ||
selector: | ||
app: voting-app | ||
tier: voting-app-backend | ||
type: ClusterIP | ||
ports: | ||
- name: redis-port | ||
port: 6379 | ||
targetPort: 6379 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: voting-app-backend | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 1 | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: voting-app | ||
tier: voting-app-backend | ||
spec: | ||
containers: | ||
- image: redis | ||
name: voting-app-redis | ||
env: | ||
- name: ENVVARNAME | ||
value: ENVVARVALUE | ||
ports: | ||
- containerPort: 6379 | ||
name: redis-port |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: voting-app-frontend-svc | ||
spec: | ||
selector: | ||
app: voting-app | ||
tier: voting-app-frontend | ||
type: LoadBalancer | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: 80 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: voting-app-frontend | ||
spec: | ||
replicas: 3 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 1 | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: voting-app | ||
tier: voting-app-frontend | ||
spec: | ||
containers: | ||
- image: microsoft/azure-vote-front:redis-v1 | ||
name: voting-app-frontend | ||
env: | ||
- name: REDIS | ||
value: "voting-app-backend-svc" | ||
ports: | ||
- containerPort: 80 | ||
name: frontend-port |