Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cncm-deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: ${CI_PROJECT_NAME}-deployment
namespace: mpc
spec:
replicas: ${REPLICA}
template:
spec:
containers:
- name: ${CI_PROJECT_NAME}
env:
- name: CONFIG_SAMPLE_URL
valueFrom:
configMapKeyRef:
name: ${CI_PROJECT_NAME}-config
key: config.sample.url
- name: SECRET_SAMPLE_PASSWORD
valueFrom:
secretKeyRef:
name: ${CI_PROJECT_NAME}-secret
key: secret.sample.password
- name: TOGGLE_SAMPLE_SWITCH
valueFrom:
configMapKeyRef:
name: ${CI_PROJECT_NAME}-toggle
key: toggle.sample.switch
resources:
requests:
memory: <request-memory>
cpu: <request-cpu>
limits:
memory: <limit-memory>
cpu: <limit-cpu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.