diff --git a/.circleci/config.yml b/.circleci/config.yml index 93fa11b9..046f8398 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/deploy.yml b/deploy.yml new file mode 100644 index 00000000..54f51235 --- /dev/null +++ b/deploy.yml @@ -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 diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 00000000..567fa291 --- /dev/null +++ b/pipeline.yml @@ -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