-
-
Save nixMark/2ed8a4999dfb78346cb0fee8de499296 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
name: app | |
name: app | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
name: app | |
spec: | |
volumes: | |
- name: files | |
hostPath: | |
path: /data/files | |
containers: | |
- name: app | |
image: "registry:5000/app:latest" | |
imagePullPolicy: Always | |
env: | |
- name: PROCESS_TYPE | |
value: app | |
- name: STAGE | |
valueFrom: | |
configMapKeyRef: | |
key: STAGE | |
name: env | |
- name: MONGO_URL | |
valueFrom: | |
configMapKeyRef: | |
key: MONGO_URL | |
name: env | |
- name: REDIS_URL | |
valueFrom: | |
configMapKeyRef: | |
key: REDIS_URL | |
name: env | |
- name: BASE_URL | |
valueFrom: | |
configMapKeyRef: | |
key: BASE_URL | |
name: env | |
- name: CLIENT_ID | |
valueFrom: | |
configMapKeyRef: | |
key: CLIENT_ID | |
name: env | |
- name: CLIENT_SECRET | |
valueFrom: | |
configMapKeyRef: | |
key: CLIENT_SECRET | |
name: env | |
- name: ASPOSE_BASE_URL | |
valueFrom: | |
configMapKeyRef: | |
key: ASPOSE_BASE_URL | |
name: env | |
- name: SMTP_URL | |
valueFrom: | |
configMapKeyRef: | |
key: SMTP_URL | |
name: env | |
- name: DUMMY_RESTART | |
valueFrom: | |
configMapKeyRef: | |
key: DUMMY_RESTART | |
name: env | |
- name: NODE_TLS_REJECT_UNAUTHORIZED | |
valueFrom: | |
configMapKeyRef: | |
key: NODE_TLS_REJECT_UNAUTHORIZED | |
name: env | |
ports: | |
- name: http | |
containerPort: 3000 | |
resources: | |
limits: | |
cpu: 1000m | |
memory: 1000Mi | |
requests: | |
cpu: 500m | |
memory: 500Mi | |
volumeMounts: | |
- name: files | |
mountPath: /tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment