Skip to content

Commit

Permalink
r0b08x [chore] 8/29/2023, 11:39:10 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Aug 29, 2023
1 parent 393b823 commit 62b46eb
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 67 deletions.
77 changes: 37 additions & 40 deletions k8s/chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,49 @@
{{- if .Values.ingress.enabled -}}
{{- $paths := .Values.ingress.paths -}}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
{{- if .Values.ingress.annotations }}
annotations:
{{- range $key, $value := .Values.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
name: p3x-redis-ui-ingress
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: p3x-redis-ui
helm.sh/chart: p3x-redis-ui
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: p3x-redis-ui
app.kubernetes.io/component: {{ .Release.Name }}
app: p3x-redis-ui
chart: p3x-redis-ui
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.ingress.labels }}
{{- toYaml .Values.ingress.labels | nindent 4 }}
{{ toYaml .Values.ingress.labels | indent 4 }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
rules:
{{- if .Values.ingress.hosts }}
{{- range $host := .Values.ingress.hosts }}
- host: {{ $host }}
{{- if .Values.ingress.enabled }}
{{- $uiPath := .Values.ingress.path -}}
{{- $uiPort := .Values.ingress.service.port -}}
{{- range .Values.ingress.hosts }}
- host: {{ . }}
http:
paths:
{{- range $p := $paths }}
- path: {{ $p }}
backend:
serviceName: p3x-redis-ui-service
servicePort: p3x-redis-ui
{{- end -}}
{{- end -}}
{{- else }}
- http:
paths:
{{- range $p := $paths }}
- path: {{ $p }}
- path: {{ $uiPath }}
pathType: Prefix
backend:
serviceName: p3x-redis-ui-service
servicePort: p3x-redis-ui
{{- end -}}
{{- end -}}
{{- if .Values.ingress.tls }}
tls:
{{- toYaml .Values.ingress.tls | nindent 4 }}
{{- end -}}
{{- end -}}
service:
name: p3x-redis-ui-service
port:
number: {{ $uiPort }}
{{- end }}
{{- end }}
{{- end }}
50 changes: 24 additions & 26 deletions k8s/chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

image:
repository: patrikx3/p3x-redis-ui
tag: latest
Expand All @@ -16,34 +15,33 @@ resources: {}
# cpu: 200m
# memory: 200M

connections: []
# - name:
# host:
# port:
# id: (unique)
# password:
# azure: false
# cluster: false
# awsElastiCache: false
# nodes: If you configure a cluster
# - host:
# port:
# id:
# password:
connections:
- name: daas-cache-kryon-dev.ptdwzp.0001.euc1.cache.amazonaws.com
host: daas-cache-kryon-dev.ptdwzp.0001.euc1.cache.amazonaws.com
port: 6379
id: 1
password:
azure: false
cluster: false
awsElastiCache: true

service:
type: ClusterIP
# nodePort: 30200 If type is NodePort

ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# cert-manager.io/cluster-issuer: letsencrypt
paths: [/]
hosts: []
tls: []
# - hosts: [host]
# secretName: host-tls

nodeSelector: {}
enabled: true
service:
port: 7843
annotations: {}
path: /
hosts:
- cache.example.com
className: nginx-pd-release
tls:
- hosts:
- "cache.example.com"
secretName: example.com-tls


nodeSelector: {}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"author": "Patrik Laszlo <[email protected]>",
"license": "MIT",
"devDependencies": {
"axios": "^1.4.0",
"axios": "^1.5.0",
"corifeus-builder": "^2023.10.135",
"electron": "^26.1.0",
"electron-builder": "^24.6.3",
Expand Down

0 comments on commit 62b46eb

Please sign in to comment.