Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ec626a8
kube122 version upgrades
FeriHansagi Feb 24, 2023
5108eda
fix duplicate ingress class definition
FeriHansagi Feb 27, 2023
4e2be4c
ingressClass:
FeriHansagi Feb 28, 2023
f0e164b
update ingress class typo
FeriHansagi Feb 28, 2023
cc1a63a
add labels on deployments
FeriHansagi Mar 7, 2023
be1de50
add labels to kong deployment also
FeriHansagi Mar 8, 2023
da37e12
extend label
FeriHansagi Mar 8, 2023
f276f67
move labels
FeriHansagi Mar 8, 2023
a5ed951
add container security
FeriHansagi Mar 8, 2023
292c9d6
remove security constraints from container
FeriHansagi Mar 9, 2023
437f64a
post install app label
FeriHansagi Mar 9, 2023
8ce3992
more labels
FeriHansagi Mar 9, 2023
4e4d25a
adding liveness probes
FeriHansagi Mar 13, 2023
c14bb46
remove double auth
FeriHansagi Mar 14, 2023
180270e
add more ingress configs for kiverno allowance
FeriHansagi Jun 16, 2023
2d2cb35
add resource to redis
FeriHansagi Jun 16, 2023
31f0851
redis deployment fix
FeriHansagi Jun 16, 2023
5d08f8c
add variables from different resource to redis
FeriHansagi Jun 16, 2023
f31c7c8
add post-install requests
FeriHansagi Jun 16, 2023
c55a781
update post-install
FeriHansagi Jun 19, 2023
08a3136
Add support in deployment templates for toleration, nodeSelector and …
pacman-1337-h Aug 14, 2023
cdce7bd
Add support in deployment helm templates for securityContext
pacman-1337-h Aug 22, 2023
f84fb01
Add support in deployment helm templates for securityContext (contain…
pacman-1337-h Aug 23, 2023
21fe492
Add support in deployment helm templates for securityContext (contain…
pacman-1337-h Aug 23, 2023
f7a9a1a
Remove securityContext (container level) from redis-deployment
pacman-1337-h Aug 23, 2023
7e7e8dc
Add support in deployment helm templates for securityContext (contain…
pacman-1337-h Aug 24, 2023
89d41a1
Add support in deployment helm templates for securityContext (contain…
pacman-1337-h Aug 24, 2023
8a6ffa0
Add support in deployment helm templates for securityContext (contain…
pacman-1337-h Aug 24, 2023
309bdda
Add support in deployment helm templates for securityContext (contain…
pacman-1337-h Aug 24, 2023
6e355ac
Revert "post install app label"
pacman-1337-h Aug 28, 2023
a7b3139
Remove extra line in post-install-hook.yaml
pacman-1337-h Aug 28, 2023
8d4dc53
Fix label generation in post-install-hook.yaml
pacman-1337-h Aug 28, 2023
aeed157
Update portal-auth-deployment.yaml
zatlantic Oct 16, 2024
992acd2
Update portal-auth-deployment.yaml -rollback
zatlantic Oct 18, 2024
bef367c
Update values.yaml - switch docker image tag
zatlantic Oct 18, 2024
cd394ca
Update values.yaml - upgrade docker tag
zatlantic Oct 21, 2024
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
2 changes: 1 addition & 1 deletion wicked/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Setting | Must Override | Default | Description
`config.useCustomApiImage` | - | `false` | Set to `true` if you want to deploy your own derived `portal-api` image, e.g. if you have embedded the static configuration into this image to avoid using the (recommended) `git clone` method.
`config.customApiImage` | - | `nil` | The (fully qualified) image name of your derived `portal-api` image. Take care that you have added `imagePullSecrets` (see `values.yaml`) if appropriate.
`ingress.enabled` | - | `true` | Specify `false` to **not** deploy an ingress resource for routing the API Portal and Gateway to the corresponding services.
`ingress.class` | - | `nginx` | The ingress class (`kubernetes.io/ingress.class`) to apply to the ingress resources.
`ingress.class` | - | `nginx` | The ingress class (`ingressClassName`) to apply to the ingress resources.
`ingress.apiHost` | **X** | `api.portal.com` | The (desired) FQDN of the API Gateway; this must point to the (load balancer of the) ingress controller selected via the ingress class, preferably before the deployment.
`ingress.portalHost` | **X** | `portal.com` | The (desired) FQDN of the API Portal; this must point to the (load balancer of the) ingress controller selected via the ingress class, preferably before the deployment.
`ingress.useKubeLego` | - | `false` | Set to `true` to add the necessary annotations for `kube-lego`; Note that this will **not** deploy `kube-lego` on your cluster, but merely use it if present (and usable in the desired namespace)
Expand Down
26 changes: 18 additions & 8 deletions wicked/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{{- if .Values.ingress.enabled -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "fullname" . }}-portal-ingress
namespace: {{ default "default" .Values.namespace }}
annotations:
kubernetes.io/ingress.class: {{ default "nginx" .Values.ingress.class }}
{{- if .Values.ingress.useKubeLego }}
cert-manager.io/duration: 2160h
kubernetes.io/tls-acme: "true"
{{- end }}
labels:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
external-dns-exclude: "false"
spec:
ingressClassName: {{ default "nginx" .Values.ingress.class }}
tls:
- hosts:
- {{ default "portal.com" .Values.ingress.portalHost }}
Expand All @@ -24,26 +26,31 @@ spec:
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: {{ template "fullname" . }}-portal
servicePort: 3000
service:
name: {{ template "fullname" . }}-portal
port:
number: 3000
---
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "fullname" . }}-gateway-ingress
namespace: {{ default "default" .Values.namespace }}
annotations:
kubernetes.io/ingress.class: {{ default "nginx" .Values.ingress.class }}
{{- if .Values.ingress.useKubeLego }}
cert-manager.io/duration: 2160h
kubernetes.io/tls-acme: "true"
{{- end }}
labels:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
external-dns-exclude: "false"
spec:
ingressClassName: {{ default "nginx" .Values.ingress.class }}
tls:
- hosts:
- {{ default "api.portal.com" .Values.ingress.apiHost }}
Expand All @@ -53,7 +60,10 @@ spec:
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: {{ template "fullname" . }}-kong
servicePort: 8000
service:
name: {{ template "fullname" . }}-kong
port:
number: 8000
{{- end -}}
38 changes: 37 additions & 1 deletion wicked/templates/kong-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
namespace: {{ default "default" .Values.namespace }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
# Kong is scaled up in the post-install hook.
replicas: 1
Expand All @@ -22,6 +25,9 @@ spec:
labels:
service: {{ template "fullname" . }}-kong
wicked: "true"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: '/metrics'
Expand Down Expand Up @@ -78,6 +84,14 @@ spec:
command:
- kong
- health
livenessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 5
failureThreshold: 5
successThreshold: 1
ports:
- name: "gateway"
containerPort: 8000
Expand All @@ -93,8 +107,30 @@ spec:
protocol: UDP
resources:
{{ toYaml .Values.kong.resources | indent 10 }}
{{- if .Values.kong }}
{{- if .Values.kong.securityContext }}
securityContext:
{{ toYaml .Values.kong.securityContext | indent 10 }}
{{- end }}
{{- end }}
restartPolicy: Always
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end -}}
{{- end -}}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
28 changes: 28 additions & 0 deletions wicked/templates/portal-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
namespace: {{ default "default" .Values.namespace }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
strategy:
Expand All @@ -21,6 +24,9 @@ spec:
labels:
service: {{ template "fullname" . }}-api
wicked: "true"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: '/metrics'
Expand Down Expand Up @@ -184,6 +190,12 @@ spec:
timeoutSeconds: 2
resources:
{{ toYaml .Values.resources.api | indent 10 }}
{{- if .Values.api }}
{{- if .Values.api.securityContext }}
securityContext:
{{ toYaml .Values.api.securityContext | indent 10 }}
{{- end }}
{{- end }}
volumes:
- name: portal-api-data-dynamic
{{- if not .Values.persistence.enabled }}
Expand All @@ -199,3 +211,19 @@ spec:
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end -}}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
28 changes: 28 additions & 0 deletions wicked/templates/portal-auth-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
namespace: {{ default "default" .Values.namespace }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
strategy:
Expand All @@ -21,6 +24,9 @@ spec:
labels:
service: {{ template "fullname" . }}-auth
wicked: "true"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: '/metrics'
Expand Down Expand Up @@ -72,8 +78,30 @@ spec:
timeoutSeconds: 2
resources:
{{ toYaml .Values.resources.auth | indent 10 }}
{{- if .Values.auth }}
{{- if .Values.auth.securityContext }}
securityContext:
{{ toYaml .Values.auth.securityContext | indent 10 }}
{{- end }}
{{- end }}
restartPolicy: Always
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end -}}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
28 changes: 28 additions & 0 deletions wicked/templates/portal-chatbot-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
namespace: {{ default "default" .Values.namespace }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
strategy:
Expand All @@ -22,9 +25,28 @@ spec:
labels:
service: {{ template "fullname" . }}-chatbot
wicked: "true"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.useRbac }}
serviceAccountName: {{ template "fullname" . }}-role
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
initContainers:
- name: {{ template "fullname" . }}-chatbot-init
Expand Down Expand Up @@ -69,6 +91,12 @@ spec:
timeoutSeconds: 2
resources:
{{ toYaml .Values.resources.chatbot | indent 10 }}
{{- if .Values.chatbot }}
{{- if .Values.chatbot.securityContext }}
securityContext:
{{ toYaml .Values.chatbot.securityContext | indent 10 }}
{{- end }}
{{- end }}
restartPolicy: Always
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
30 changes: 29 additions & 1 deletion wicked/templates/portal-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
namespace: {{ default "default" .Values.namespace }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
strategy:
Expand All @@ -21,6 +24,9 @@ spec:
labels:
service: {{ template "fullname" . }}-portal
wicked: "true"
{{- with .Values.deployments.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.useRbac }}
serviceAccountName: {{ template "fullname" . }}-role
Expand Down Expand Up @@ -68,7 +74,29 @@ spec:
timeoutSeconds: 2
resources:
{{ toYaml .Values.resources.portal | indent 10 }}
{{- if .Values.portal }}
{{- if .Values.portal.securityContext }}
securityContext:
{{ toYaml .Values.portal.securityContext | indent 10 }}
{{- end }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end -}}
{{- end -}}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
Loading