Created
June 29, 2019 14:06
-
-
Save tomsfernandez/f6a87926faa39f14449726806095e9b5 to your computer and use it in GitHub Desktop.
Generated Kompose Deployment File Example for Medium Article
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe | |
convert | |
kompose.version: 1.18.0 (06a2e56) | |
creationTimestamp: null | |
labels: | |
io.kompose.service: users-api | |
name: users-api | |
spec: | |
replicas: 1 | |
strategy: {} | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
io.kompose.service: users-api | |
spec: | |
containers: | |
- env: | |
- name: MONGO_DB | |
value: users | |
- name: MONGO_HOST | |
value: mongo | |
- name: MONGO_PORT | |
value: "27017" | |
- name: PORT | |
value: "50051" | |
image: users_api | |
name: users-api | |
ports: | |
- containerPort: 50051 | |
resources: {} | |
restartPolicy: Always | |
status: {} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment