Created
April 21, 2020 14:15
-
-
Save tasdemirbahadir/d732ea9c83989e80eff61373c74d8ab1 to your computer and use it in GitHub Desktop.
App project deployment yml file sample
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: 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