Created
May 18, 2017 20:53
-
-
Save dougbtv/ea3c442d03b6f068da6dfce4156a1dd1 to your computer and use it in GitHub Desktop.
Kubernetes Helm chart files
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: {{ template "fullname" . }} | |
labels: | |
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" | |
spec: | |
replicas: {{ .Values.replicaCount }} | |
template: | |
metadata: | |
labels: | |
app: {{ template "fullname" . }} | |
spec: | |
containers: | |
- name: {{ .Chart.Name }} | |
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | |
imagePullPolicy: {{ .Values.image.pullPolicy }} | |
env: | |
- name: PICKLE_TYPE | |
value: {{ .Values.pickletype }} | |
ports: | |
- containerPort: {{ .Values.service.internalPort }} | |
livenessProbe: | |
httpGet: | |
path: / | |
port: {{ .Values.service.internalPort }} | |
readinessProbe: | |
httpGet: | |
path: / | |
port: {{ .Values.service.internalPort }} | |
resources: | |
{{ toYaml .Values.resources | indent 10 }} |
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
# Default values for pickle-chart. | |
# This is a YAML-formatted file. | |
# Declare variables to be passed into your templates. | |
replicaCount: 1 | |
pickletype: pickle | |
image: | |
repository: dougbtv/pickle-nginx | |
tag: latest | |
pullPolicy: IfNotPresent | |
service: | |
name: pickle-nginx | |
type: ClusterIP | |
externalPort: 80 | |
internalPort: 80 | |
ingress: | |
enabled: false | |
# Used to create Ingress record (should used with service.type: ClusterIP). | |
hosts: | |
- chart-example.local | |
annotations: | |
# kubernetes.io/ingress.class: nginx | |
# kubernetes.io/tls-acme: "true" | |
tls: | |
# Secrets must be manually created in the namespace. | |
# - secretName: chart-example-tls | |
# hosts: | |
# - chart-example.local | |
resources: | |
limits: | |
cpu: 100m | |
memory: 128Mi | |
requests: | |
cpu: 100m | |
memory: 128Mi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment