Created
September 1, 2017 13:04
-
-
Save gmaliar/ed8ff0bf3c43b3e2e4eb998055572e7e to your computer and use it in GitHub Desktop.
Helm example: deployments
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% | |
| maxSurge: 25% | |
| template: | |
| metadata: | |
| annotations: | |
| version: v{{ .Values.release.version }} | |
| labels: | |
| app: {{ .Chart.Name }}-bg | |
| spec: | |
| containers: | |
| - name: {{ .Chart.Name }}-bg | |
| image: {{ .Values.ecr.url }}/{{ .Chart.Name }}:v{{ .Values.release.version }} | |
| command: ["bundle", "exec"] | |
| args: ["sidekiq", "-C", "/usr/src/app/config/sidekiq.yml"] | |
| ports: | |
| - containerPort: {{ .Values.bg.pod.port }} | |
| resources: | |
| limits: | |
| memory: {{ .Values.bg.resources.limits.memory }} | |
| requests: | |
| cpu: {{ .Values.bg.resources.requests.cpu }} | |
| memory: {{ .Values.bg.resources.requests.memory }} | |
| {{ include "env" . | indent 8 }} |
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
| # web.yml | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: {{ .Chart.Name }}-web | |
| spec: | |
| revisionHistoryLimit: 2 | |
| strategy: | |
| rollingUpdate: | |
| maxUnavailable: 25% | |
| maxSurge: 25% | |
| template: | |
| metadata: | |
| annotations: | |
| version: v{{ .Values.release.version }} | |
| labels: | |
| app: {{ .Chart.Name }}-web | |
| spec: | |
| containers: | |
| - name: {{ .Chart.Name }}-web | |
| image: {{ .Values.ecr.url }}/{{ .Chart.Name }}:v{{ .Values.release.version }} | |
| command: ["bundle", "exec"] | |
| args: ["puma", "-C", "/usr/src/app/config/puma.rb"] | |
| ports: | |
| - containerPort: {{ .Values.web.pod.port }} | |
| resources: | |
| limits: | |
| memory: {{ .Values.web.resources.limits.memory }} | |
| requests: | |
| cpu: {{ .Values.web.resources.requests.cpu }} | |
| memory: {{ .Values.web.resources.requests.memory }} | |
| livenessProbe: | |
| httpGet: | |
| path: /healthz | |
| port: {{ .Values.web.pod.port }} | |
| initialDelaySeconds: 120 | |
| timeoutSeconds: 5 | |
| readinessProbe: | |
| httpGet: | |
| path: /healthz | |
| port: {{ .Values.web.pod.port }} | |
| initialDelaySeconds: 60 | |
| timeoutSeconds: 5 | |
| {{ include "env" . | indent 8 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment