Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,28 @@ workflows:
requires:
- testing-complete
# END ANSIBLE MANAGED BLOCK

plan-us-west-2-prod:
jobs:
# - tfplan/terraform-plan:
# context:
# - org-global
# - us-west-2-prod
# app: rdoc-app
# env: us-west-2-prod
# region: us-west-2
# aws-access-key-id: ${US_WEST_2_PROD_AWS_ACCESS_KEY_ID}
# aws-secret-access-key: ${US_WEST_2_PROD_AWS_SECRET_ACCESS_KEY}
# kong-admin-uri: ${US_WEST_2_PROD_KONG_ADMIN_URI}
# kong-api-key: ${US_WEST_2_PROD_KONG_API_KEY}
- kong/deck-operations:
name: deck-operations-us-west-2-prod
kong_addr: ${US_WEST_2_PROD_KONG_ADMIN_URI}
app: rdoc-app
kong_tags: rdoc-app
context:
- org-global
- kong-us-west-2-prod
filters:
branches:
ignore: master
66 changes: 66 additions & 0 deletions deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
prod:
cluster_name: app-cluster
app_account: true
kong_deck:
tags: rdoc-app
k8s:
deployment:
replicas: 2
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
hpa:
enabled: true
minReplicas: 2
maxReplicas: 10
targetCPUUtilizationPercentage: 70

us-west-2-prod:
cluster_name: app-cluster
app_account: true
kong_deck:
tags: rdoc-app
k8s:
deployment:
replicas: 0
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
hpa:
enabled: true
minReplicas: 2
maxReplicas: 10
targetCPUUtilizationPercentage: 70

staging:
cluster_name: app-cluster
app_account: true
kong_deck:
tags: rdoc-app
k8s:
deployment:
replicas: 1
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 250m
memory: 256Mi
hpa:
enabled: false
deployment_tests:
enabled: true
acceptance_tests:
enabled: true
integration_tests:
enabled: true
18 changes: 18 additions & 0 deletions pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
pipelines:
- name: staging
environments:
- name: staging
auto_deploy: false

- name: prod
environments:
- name: prod
after: staging
auto_deploy: false

- name: us-west-2-prod
environments:
- name: us-west-2-prod
after: prod
auto_deploy: false