Created
May 2, 2020 07:49
-
-
Save nashmaniac/7e08cfe9c120eab2c43a36fee1d124b2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: user-deployment | |
| labels: | |
| app: user | |
| spec: | |
| replicas: 2 | |
| selector: | |
| matchLabels: | |
| app: user | |
| template: | |
| metadata: | |
| name: user-template | |
| labels: | |
| app: user | |
| spec: | |
| containers: | |
| - name: user-microservice-container | |
| image: gcr.io/nomadic-mesh/microservice/user | |
| imagePullPolicy: Always | |
| env: | |
| - name: APP_NAME | |
| value: "User" | |
| ports: | |
| - containerPort: 8000 | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: user-service | |
| spec: | |
| selector: | |
| app: user | |
| ports: | |
| - port: 8000 | |
| targetPort: 8000 | |
| name: http-user-service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment