Skip to content

Commit

Permalink
wip: add ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
nleconte-csgroup committed Feb 15, 2024
1 parent 50a82b0 commit 194c1ef
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/rs-server-adgs/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{ .Values.namespace }}
annotations:
cert-manager.io/{{ .Values.ingress.issuer.type }}: {{ .Values.ingress.issuer.name }}
name: {{ .Release.Name }}-ingess
spec:
ingressClassName: nginx
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- backend:
service:
name: {{ .Release.Name }}-svc
port:
number: 8080
path: {{ .Values.ingress.path }}
pathType: Prefix
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.host | replace(".", "-") }}
7 changes: 7 additions & 0 deletions charts/rs-server-adgs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ image:
PullPolicy: Always
#imagePullSecrets: regcred

ingress:
issuer:
type: cluster-issuer
name: letsencrypt-prod
host: subdomain.example.com
path: /adgs

resources:
request:
ram: "256Mi"
Expand Down

0 comments on commit 194c1ef

Please sign in to comment.