-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add multiwoven ui to helm chart (#7)
* changes made for azure aks deployment * fix: replace values.yaml * feat: enable TLS connections on AKS cluster * feat: adding ui ingress and replacing hardcoded values * refactor: removing hardcorded chart.fullname * refactor: reverted changed values, using helm --set * fix: removing TLS work changes from PR * fix: removing stray TLS work-related file from this PR * fix: removed unnecessary env var from UI template, replaced dummy ui container with official container and removed azure dependency from server ingress * fix: removed rewrite rule from ingresses and added api path for api server * fixed version and appversion in Chart.yaml to pass lint tests * fix: review issue fixes * fix: added regex to the path so the rewrite-target annotation doesn't break the ingress * fix: removed api path and tested deployment w two subdomains, app.squared.ai and api.squared.ai. works. * fix: cleaning up .gitignore * fix: set vite-related env variables to defaults --------- Co-authored-by: Rafael E. ONeill <[email protected]>
- Loading branch information
1 parent
643993d
commit 18a720e
Showing
11 changed files
with
141 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "chart.fullname" . }}-ui | ||
namespace: {{ .Values.kubernetesNamespace }} | ||
labels: | ||
app: {{ include "chart.fullname" . }}-ui | ||
io.kompose.service: {{ include "chart.fullname" . }}-ui | ||
{{- include "chart.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.multiwovenUI.replicas }} | ||
selector: | ||
matchLabels: | ||
app: {{ include "chart.fullname" . }}-ui | ||
io.kompose.service: {{ include "chart.fullname" . }}-ui | ||
{{- include "chart.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ include "chart.fullname" . }}-ui | ||
io.kompose.service: {{ include "chart.fullname" . }}-ui | ||
{{- include "chart.selectorLabels" . | nindent 8 }} | ||
spec: | ||
containers: | ||
- env: | ||
envFrom: | ||
- configMapRef: | ||
name: {{ include "chart.fullname" . }}-config | ||
image: {{ .Values.multiwovenUI.multiwovenUI.image.repository }}:{{ .Values.multiwovenUI.multiwovenUI.image.tag | default .Chart.AppVersion }} | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: 8000 | ||
initialDelaySeconds: 15 | ||
periodSeconds: 10 | ||
name: {{ include "chart.fullname" . }}-ui | ||
ports: | ||
- containerPort: 8000 | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: 8000 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 10 | ||
resources: {{- toYaml .Values.multiwovenUI.multiwovenUI.resources | nindent 10 }} | ||
restartPolicy: Always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "chart.fullname" . }}-ui-ingress | ||
namespace: {{ .Values.kubernetesNamespace }} | ||
|
||
labels: | ||
{{- include "chart.labels" . | nindent 4 }} | ||
annotations: | ||
nginx.ingress.kubernetes.io/rewrite-target: /$1 | ||
kubernetes.io/ingress.class: nginx | ||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP" | ||
spec: | ||
rules: | ||
- host: {{ .Values.multiwovenConfig.uiHost }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: '{{ include "chart.fullname" . }}-ui' | ||
port: | ||
number: 8000 | ||
path: /(.*) | ||
pathType: Prefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "chart.fullname" . }}-ui | ||
namespace: {{ .Values.kubernetesNamespace }} | ||
|
||
labels: | ||
io.kompose.service: {{ include "chart.fullname" . }}-ui | ||
{{- include "chart.labels" . | nindent 4 }} | ||
annotations: | ||
kompose.cmd: kompose convert | ||
kompose.version: 1.32.0 (HEAD) | ||
spec: | ||
type: {{ .Values.multiwovenUI.type }} | ||
selector: | ||
io.kompose.service: {{ include "chart.fullname" . }}-ui | ||
{{- include "chart.selectorLabels" . | nindent 4 }} | ||
ports: | ||
{{- .Values.multiwovenUI.ports | toYaml | nindent 2 -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters