Skip to content

Commit

Permalink
add new version helm
Browse files Browse the repository at this point in the history
  • Loading branch information
watri committed Jan 24, 2024
1 parent 42a3993 commit bcccf62
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
Demo-Helm-Chart
Demo-Helm-Chart

helm repo add demo https://watri.github.io/demo-chart/
helm repo update
helm install demo-service demo/demo -n prod --dry-run

4 changes: 2 additions & 2 deletions charts/demo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: demo
description: A Helm chart for Kubernetes
description: A Helm chart for Demo

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 1.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 12 additions & 0 deletions charts/demo/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ metadata:
labels:
{{- include "demo.labels" . | nindent 4 }}
spec:
{{- if eq .Values.service.type "NodePort" }}
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
nodePort: {{ .Values.service.nodePort }}
protocol: TCP
name: http
selector:
{{- include "demo.selectorLabels" . | nindent 4 }}
{{ else }}
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
Expand All @@ -13,3 +24,4 @@ spec:
name: http
selector:
{{- include "demo.selectorLabels" . | nindent 4 }}
{{ end }}
Binary file removed demo-0.1.0.tgz
Binary file not shown.
Binary file added demo-1.0.1.tgz
Binary file not shown.

0 comments on commit bcccf62

Please sign in to comment.