Skip to content

Instantly share code, notes, and snippets.

@DiederikvandenB
Last active November 30, 2018 09:52
Show Gist options
  • Save DiederikvandenB/9042cc43c6e1331832b7e86eb94a6dcd to your computer and use it in GitHub Desktop.
Save DiederikvandenB/9042cc43c6e1331832b7e86eb94a6dcd to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-svc-staging-deployment
namespace: staging
labels:
app.kubernetes.io/name: auth-svc-staging-deployment
helm.sh/chart: glue-helm-0.1.0
app.kubernetes.io/managed-by: Tiller
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
revisionHistoryLimit: 5
selector:
matchLabels:
app.kubernetes.io/name: auth-svc-staging-deployment
template:
metadata:
labels:
app.kubernetes.io/name: auth-svc-staging-deployment
spec:
containers:
- name: auth-svc-staging-deployment
command: ["./auth-svc"]
image: auth-svc:latest
imagePullPolicy: Always
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
ports:
- containerPort: 8080
protocol: TCP
apiVersion: v1
kind: Service
metadata:
name: auth-svc
namespace: staging
labels:
app.kubernetes.io/name: auth-svc
helm.sh/chart: glue-helm-0.1.0
app.kubernetes.io/managed-by: Tiller
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app.kubernetes.io/name: auth-svc-staging-deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: rpc-gateway-staging-deployment
namespace: staging
labels:
app.kubernetes.io/name: rpc-gateway-staging-deployment
helm.sh/chart: glue-helm-0.1.0
app.kubernetes.io/managed-by: Tiller
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
revisionHistoryLimit: 5
selector:
matchLabels:
app.kubernetes.io/name: rpc-gateway-staging-deployment
template:
metadata:
labels:
app.kubernetes.io/name: rpc-gateway-staging-deployment
spec:
containers:
- name: rpc-gateway-staging-deployment
args: [
"api",
"--handler=rpc",
"--address=0.0.0.0:8080"
]
image: microhq/micro:kubernetes
imagePullPolicy: Always
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-gateway-staging-deployment
namespace: staging
labels:
app.kubernetes.io/name: web-gateway-staging-deployment
helm.sh/chart: glue-helm-0.1.0
app.kubernetes.io/managed-by: Tiller
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
revisionHistoryLimit: 5
selector:
matchLabels:
app.kubernetes.io/name: web-gateway-staging-deployment
template:
metadata:
labels:
app.kubernetes.io/name: web-gateway-staging-deployment
spec:
containers:
- name: web-gateway-staging-deployment
args: [
"web",
"--address=0.0.0.0:8082"
]
image: microhq/micro:kubernetes
imagePullPolicy: Always
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
ports:
- containerPort: 8082
protocol: TCP
apiVersion: v1
kind: Service
metadata:
name: rpc-gateway
namespace: staging
labels:
app.kubernetes.io/name: rpc-gateway
helm.sh/chart: glue-helm-0.1.0
app.kubernetes.io/managed-by: Tiller
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app.kubernetes.io/name: rpc-gateway-staging-deployment
---
apiVersion: v1
kind: Service
metadata:
name: web-gateway
namespace: staging
labels:
app.kubernetes.io/name: web-gateway
helm.sh/chart: glue-helm-0.1.0
app.kubernetes.io/managed-by: Tiller
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8082
selector:
app.kubernetes.io/name: web-gateway-staging-deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment