Add navix app
This commit is contained in:
parent
8c1df61655
commit
8fe875bc2c
4
charts/navix-helm/Chart.yaml
Normal file
4
charts/navix-helm/Chart.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: navix
|
||||||
|
version: 0.1.0
|
||||||
|
description: A DevOps dashboard called Navix
|
||||||
29
charts/navix-helm/templates/backend-deployment.yaml
Normal file
29
charts/navix-helm/templates/backend-deployment.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: navix-backend
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: navix-backend
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: navix-backend
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: backend
|
||||||
|
image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.backend.image.pullPolicy }}
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
env:
|
||||||
|
- name: MINIO_ACCESS_KEY
|
||||||
|
value: "{{ .Values.backend.env.MINIO_ACCESS_KEY }}"
|
||||||
|
- name: MINIO_SECRET_KEY
|
||||||
|
value: "{{ .Values.backend.env.MINIO_SECRET_KEY }}"
|
||||||
|
- name: MINIO_ENDPOINT
|
||||||
|
value: "{{ .Values.backend.env.MINIO_ENDPOINT }}"
|
||||||
|
- name: MINIO_BUCKET
|
||||||
|
value: "{{ .Values.backend.env.MINIO_BUCKET }}"
|
||||||
11
charts/navix-helm/templates/backend-service.yaml
Normal file
11
charts/navix-helm/templates/backend-service.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: navix-backend
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.backend.service.type }}
|
||||||
|
selector:
|
||||||
|
app: navix-backend
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.backend.service.port }}
|
||||||
|
targetPort: 8000
|
||||||
20
charts/navix-helm/templates/frontend-deployment.yaml
Normal file
20
charts/navix-helm/templates/frontend-deployment.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: navix-frontend
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: navix-frontend
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: navix-frontend
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: frontend
|
||||||
|
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
23
charts/navix-helm/templates/frontend-ingress.yaml
Normal file
23
charts/navix-helm/templates/frontend-ingress.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{{- if .Values.frontend.ingress.enabled }}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: navix-frontend
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := .Values.frontend.ingress.annotations }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.frontend.ingress.className }}
|
||||||
|
rules:
|
||||||
|
- host: {{ .Values.frontend.ingress.hosts[0].host }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: {{ .Values.frontend.ingress.hosts[0].paths[0].path }}
|
||||||
|
pathType: {{ .Values.frontend.ingress.hosts[0].paths[0].pathType }}
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: navix-frontend
|
||||||
|
port:
|
||||||
|
number: {{ .Values.frontend.service.port }}
|
||||||
|
{{- end }}
|
||||||
11
charts/navix-helm/templates/frontend-service.yaml
Normal file
11
charts/navix-helm/templates/frontend-service.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: navix-frontend
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.frontend.service.type }}
|
||||||
|
selector:
|
||||||
|
app: navix-frontend
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.frontend.service.port }}
|
||||||
|
targetPort: 80
|
||||||
35
charts/navix-helm/values.yaml
Normal file
35
charts/navix-helm/values.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
frontend:
|
||||||
|
image:
|
||||||
|
repository: harbor.dvirlabs.com/my-apps/navix-frontend
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 80
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: traefik
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
hosts:
|
||||||
|
- host: navix.dvirlabs.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
|
||||||
|
backend:
|
||||||
|
image:
|
||||||
|
repository: harbor.dvirlabs.com/my-apps/navix-backend
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 8000
|
||||||
|
env:
|
||||||
|
MINIO_ACCESS_KEY: "your-access-key"
|
||||||
|
MINIO_SECRET_KEY: "your-secret-key"
|
||||||
|
MINIO_ENDPOINT: "s3.dvirlabs.com"
|
||||||
|
MINIO_BUCKET: "navix-icons"
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
35
manifests/navix/values.yaml
Normal file
35
manifests/navix/values.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
frontend:
|
||||||
|
image:
|
||||||
|
repository: harbor.dvirlabs.com/my-apps/navix-frontend
|
||||||
|
tag: v1-no-cicd
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 80
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: traefik
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
hosts:
|
||||||
|
- host: navix.dvirlabs.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
|
||||||
|
backend:
|
||||||
|
image:
|
||||||
|
repository: harbor.dvirlabs.com/my-apps/navix-backend
|
||||||
|
tag: v1-no-cicd
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 8000
|
||||||
|
env:
|
||||||
|
MINIO_ACCESS_KEY: "TDJvsBmbkpUXpCw5M7LA"
|
||||||
|
MINIO_SECRET_KEY: "n9scR7W0MZy6FF0bznV98fSgXpdebIQjqZvEr1Yu"
|
||||||
|
MINIO_ENDPOINT: "s3.dvirlabs.com"
|
||||||
|
MINIO_BUCKET: "navix-icons"
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
Loading…
x
Reference in New Issue
Block a user