Skip to content

Instantly share code, notes, and snippets.

@dougbtv
Created May 18, 2017 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougbtv/ea3c442d03b6f068da6dfce4156a1dd1 to your computer and use it in GitHub Desktop.
Save dougbtv/ea3c442d03b6f068da6dfce4156a1dd1 to your computer and use it in GitHub Desktop.
Kubernetes Helm chart files
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 }}
# 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