This file contains hidden or 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
| # Some tools that make it easier to work with our templates | |
| brew install gettext --force | |
| brew install kubectl | |
| brew install kops | |
| brew install kubernetes-helm | |
| brew install terraform | |
| brew install awscli | |
| brew install jq | |
| awscli configure --profile kops |
This file contains hidden or 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
| # SQS template file (templates/sqs.tf) | |
| resource "aws_sqs_queue" "queue" { | |
| name = "tailor-${STAGE}-${S3_BUCKET_PREFIX}" | |
| visibility_timeout_seconds = "30" | |
| delay_seconds = "0" | |
| max_message_size = "262144" | |
| message_retention_seconds = "345600" | |
| receive_wait_time_seconds = "20" | |
| redrive_policy = "" | |
| } |
This file contains hidden or 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: v1 | |
| kind: List | |
| items: | |
| - apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: weave-net | |
| labels: | |
| name: weave-net | |
| namespace: kube-system |
This file contains hidden or 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: v1 | |
| kind: List | |
| items: | |
| - apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: flannel | |
| namespace: kube-system | |
| - apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRole |
This file contains hidden or 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
| # Ingress Controller deployment YAML | |
| --- | |
| kind: Deployment | |
| apiVersion: extensions/v1beta1 | |
| metadata: | |
| name: ingress-nginx | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: |
This file contains hidden or 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
| # Chart.yml | |
| apiVersion: v1 | |
| description: A Helm chart for Ruby on Rails | |
| name: tailor | |
| version: 1.0.0 |
This file contains hidden or 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
| env: | |
| host: studio.tailorbrands.com | |
| web: | |
| service: | |
| port: 80 | |
| pod: | |
| port: 3000 | |
| resources: | |
| limits: |
This file contains hidden or 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
| # config-map.yml | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: {{ .Chart.name }}-config | |
| annotations: | |
| "helm.sh/hook": pre-install | |
| data: | |
| min.threads: "24" | |
| max.threads: "60" |
This file contains hidden or 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
| # _helpers.tpl | |
| {{- define "env" }} | |
| env: | |
| - name: MIN_THREADS | |
| valueFrom: | |
| configMapKeyRef: | |
| name: {{ .Chart.Name }}-config | |
| key: min.threads | |
| - name: MAX_THREADS | |
| valueFrom: |
This file contains hidden or 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
| # bg.yml | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: {{ .Chart.Name }}-bg | |
| spec: | |
| revisionHistoryLimit: 2 | |
| strategy: | |
| rollingUpdate: | |
| maxUnavailable: 25% |