Skip to content

Instantly share code, notes, and snippets.

@tasdemirbahadir
Created April 21, 2020 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tasdemirbahadir/d732ea9c83989e80eff61373c74d8ab1 to your computer and use it in GitHub Desktop.
Save tasdemirbahadir/d732ea9c83989e80eff61373c74d8ab1 to your computer and use it in GitHub Desktop.
App project deployment yml file sample
apiVersion: apps/v1
kind: Deployment
metadata:
name: ${CI_PROJECT_NAME}-deployment
namespace: ${NAMESPACE}
spec:
replicas: ${REPLICA}
selector:
matchLabels:
app: ${CI_PROJECT_NAME}
containers:
- name: ${CI_PROJECT_NAME}
image: ${DOCKER_IMAGE}
envFrom:
- configMapRef:
name: ${CI_PROJECT_NAME}-toggle
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