Skip to content

Instantly share code, notes, and snippets.

@olix0r
Last active April 17, 2018 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olix0r/053830d056e4946b407b0b142d1244f4 to your computer and use it in GitHub Desktop.
Save olix0r/053830d056e4946b407b0b142d1244f4 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Namespace
metadata:
name: bot
---
apiVersion: v1
kind: Service
metadata:
name: emojivoto
namespace: bot
spec:
type: ExternalName
externalName: web-svc.emojivoto.svc.cluster.local
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: absentee-voter
namespace: bot
spec:
replicas: 1
selector:
matchLabels:
app: absentee-voter
template:
metadata:
creationTimestamp: null
labels:
app: absentee-voter
spec:
containers:
- command:
- emojivoto-vote-bot
env:
- name: WEB_HOST
value: emojivoto:80
image: buoyantio/emojivoto-web:v3
name: vote-bot
---
apiVersion: v1
kind: Namespace
metadata:
name: bot
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: voter
namespace: bot
spec:
replicas: 1
selector:
matchLabels:
app: voter
template:
metadata:
creationTimestamp: null
labels:
app: voter
spec:
containers:
- command:
- emojivoto-vote-bot
env:
- name: WEB_HOST
value: web-svc.emojivoto.svc.cluster.local:80
image: buoyantio/emojivoto-web:v3
name: vote-bot
---
apiVersion: v1
kind: Namespace
metadata:
name: emojivoto
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: emoji
namespace: emojivoto
spec:
replicas: 1
selector:
matchLabels:
app: emoji-svc
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: emoji-svc
spec:
containers:
- env:
- name: GRPC_PORT
value: "8080"
image: buoyantio/emojivoto-emoji-svc:v3
name: emoji-svc
ports:
- containerPort: 8080
name: grpc
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: emoji-svc
namespace: emojivoto
spec:
selector:
app: emoji-svc
clusterIP: None
ports:
- name: grpc
port: 8080
targetPort: 8080
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: voting
namespace: emojivoto
spec:
replicas: 1
selector:
matchLabels:
app: voting-svc
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: voting-svc
spec:
containers:
- env:
- name: GRPC_PORT
value: "8080"
image: buoyantio/emojivoto-voting-svc:v3
name: voting-svc
ports:
- containerPort: 8080
name: grpc
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: voting-svc
namespace: emojivoto
spec:
selector:
app: voting-svc
clusterIP: None
ports:
- name: grpc
port: 8080
targetPort: 8080
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: web
namespace: emojivoto
spec:
replicas: 1
selector:
matchLabels:
app: web-svc
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: web-svc
spec:
containers:
- env:
- name: WEB_PORT
value: "8000"
- name: EMOJISVC_HOST
value: emoji-svc.emojivoto:8080
- name: VOTINGSVC_HOST
value: voting-svc.emojivoto:8080
- name: INDEX_BUNDLE
value: dist/index_bundle.js
image: buoyantio/emojivoto-web:v3
name: web-svc
ports:
- containerPort: 8000
name: http
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: web-svc
namespace: emojivoto
spec:
type: LoadBalancer
selector:
app: web-svc
ports:
- name: http
port: 80
targetPort: 8000
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment