Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinshakya507 committed Aug 19, 2024
1 parent 104f9ca commit a82d366
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm/web-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2.0.6
version: 2.0.7

# 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
5 changes: 3 additions & 2 deletions helm/web-service/templates/httpRoute.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.httpRoute.enabled -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
Expand Down Expand Up @@ -26,8 +27,8 @@ spec:
{{- range .backendRefs }}
- group: "{{ .group | default "" }}" # Use default "" if group is missing
kind: "{{ .kind }}"
name: "{{ .name }}"
port: {{ .port }}
name: "{{ include "web-service.fullname" . }}"
port: {{ $svcPort }}
weight: {{ .weight | default 1 }} # Use default weight 1 if missing
{{- end }}
matches:
Expand Down
51 changes: 51 additions & 0 deletions test-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: test-web
namespace: kube-system
spec:
chart: web-service
repo: https://sachinshakya507.github.io/charts
targetNamespace: default
valuesContent: |-
replicaCount: 1
image:
repository: docker.io/hamropatrorepo/election-update
pullPolicy: IfNotPresent
tag: "v1"
imagePullSecrets:
- name: regcred
liveness:
path: /
readiness:
path: /
service:
targetPort: 80
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
resources:
limits:
memory: 256Mi
requests:
memory: 128Mi
httpRoute:
enabled: true
hostnames:
- "test-deploy.hamrostack.com"
rules:
- backendRefs:
- group: ""
kind: Service
weight: 1
# name: test-web-web-service
port: 80
matches:
- path:
type: PathPrefix
value: /

0 comments on commit a82d366

Please sign in to comment.