Created
February 7, 2021 03:11
-
-
Save digitalronin/401910f3848f92bb32fb129273a0c889 to your computer and use it in GitHub Desktop.
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
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 |
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
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