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: 1 addition & 1 deletion docker-compose.images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
redis:
condition: service_healthy
ports:
- "8080:80"
- "8086:80"
networks:
- front-tier
- back-tier
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# version is now using "compose spec"
# v2 and v3 are now combined!
# docker-compose v1.27+ required
## testing webhook

services:
vote:
Expand Down
2 changes: 1 addition & 1 deletion docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
vote:
image: dockersamples/examplevotingapp_vote
ports:
- 8080:80
- 8086:80
networks:
- frontend
deploy:
Expand Down
1 change: 1 addition & 0 deletions k8s-specifications/db-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: voting-app
labels:
app: db
name: db
Expand Down
1 change: 1 addition & 0 deletions k8s-specifications/db-service.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
kind: Service
metadata:
namespace: voting-app
labels:
app: db
name: db
Expand Down
1 change: 1 addition & 0 deletions k8s-specifications/redis-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: voting-app
labels:
app: redis
name: redis
Expand Down
1 change: 1 addition & 0 deletions k8s-specifications/redis-service.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
kind: Service
metadata:
namespace: voting-app
labels:
app: redis
name: redis
Expand Down
1 change: 1 addition & 0 deletions k8s-specifications/result-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: voting-app
labels:
app: result
name: result
Expand Down
1 change: 1 addition & 0 deletions k8s-specifications/result-service.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
kind: Service
metadata:
namespace: voting-app
labels:
app: result
name: result
Expand Down
1 change: 1 addition & 0 deletions k8s-specifications/vote-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: voting-app
labels:
app: vote
name: vote
Expand Down
3 changes: 2 additions & 1 deletion k8s-specifications/vote-service.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
apiVersion: v1
kind: Service
metadata:
namespace: voting-app
labels:
app: vote
name: vote
spec:
type: NodePort
ports:
- name: "vote-service"
port: 8080
port: 8086
targetPort: 80
nodePort: 31000
selector:
Expand Down
5 changes: 5 additions & 0 deletions k8s-specifications/voting-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: Namespace

metadata:
name: voting-app
1 change: 1 addition & 0 deletions k8s-specifications/worker-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: voting-app
labels:
app: worker
name: worker
Expand Down