Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions charts/nsqd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
apiVersion: v2
name: nsqd
home: https://github.com/teamhephy/nsq
version: <Will be populated by the ci before publishing the chart>
version: 2.5.5
description: A kubernetes based docker image for running nsq daemon.
maintainers:
- name: Team Hephy
email: team@teamhephy.com
- name: Team Hephy
email: team@teamhephy.com
7 changes: 7 additions & 0 deletions charts/nsqd/templates/_helpers.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ extensions/v1beta1
apps/v1
{{- end -}}
{{- end -}}
{{- define "policyAPIVersion" -}}
{{- if .Capabilities.APIVersions.Has "policy/v1beta1" -}}
policy/v1beta1
{{- else -}}
policy/v1
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/nsqd/templates/nsqd-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: policy/v1beta1
apiVersion: {{ template "policyAPIVersion" . }}
kind: PodDisruptionBudget
metadata:
name: deis-nsqd
Expand Down
1 change: 0 additions & 1 deletion charts/nsqd/templates/nsqd-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
heritage: deis
app: deis-nsqd
spec:
clusterIP: None
ports:
- port: {{ .Values.http_port }}
name: http
Expand Down
4 changes: 2 additions & 2 deletions charts/nsqd/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org: "hephy"
pull_policy: "Always"
docker_tag: "canary"
pull_policy: "IfNotPresent"
docker_tag: v2.5.1
# limits_cpu: "100m"
# limits_memory: "50Mi"
replicas: 1
Expand Down