Skip to content

Instantly share code, notes, and snippets.

@digitalronin
Created February 7, 2021 03:11
Show Gist options
  • Save digitalronin/401910f3848f92bb32fb129273a0c889 to your computer and use it in GitHub Desktop.
Save digitalronin/401910f3848f92bb32fb129273a0c889 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: bar-deployment
spec:
replicas: 1
selector:
matchLabels:
app: bar
template:
metadata:
labels:
app: bar
spec:
containers:
- name: api
image: digitalronin/bar-microservice:0.1
ports:
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: bar-service
labels:
app: bar-service
spec:
ports:
- port: 5000
name: http
targetPort: 5000
selector:
app: bar
apiVersion: apps/v1
kind: Deployment
metadata:
name: foo-deployment
spec:
replicas: 1
selector:
matchLabels:
app: foo
template:
metadata:
labels:
app: foo
spec:
containers:
- name: api
image: digitalronin/foo-microservice:0.1
ports:
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: foo-service
labels:
app: foo-service
spec:
ports:
- port: 5000
name: http
targetPort: 5000
selector:
app: foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment