Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 84dd5c2096 |
@@ -4,10 +4,10 @@ description: Atlantis map and simulation service
|
|||||||
type: application
|
type: application
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
version: v2.6.5
|
version: v2.5.2
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application.
|
# incremented each time you make changes to the application.
|
||||||
appVersion: v2.6.5
|
appVersion: v2.5.2
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: diagrid-dashboard
|
- name: diagrid-dashboard
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: git.oceanbox.io/oceanbox/poseidon/atlantis
|
repository: git.oceanbox.io/oceanbox/poseidon/atlantis
|
||||||
tag: v2.6.5
|
tag: v2.5.2
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
init:
|
init:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: v2.6.5
|
version: v2.5.2
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "v2.6.5"
|
appVersion: "v2.5.2"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ image:
|
|||||||
# This sets the pull policy for images.
|
# This sets the pull policy for images.
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: v2.6.5
|
tag: v2.5.2
|
||||||
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: gitlab-pull-secret
|
- name: gitlab-pull-secret
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ service:
|
|||||||
port: 8080
|
port: 8080
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: haproxy
|
className: nginx
|
||||||
persistence:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
size: 1G
|
size: 1G
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: v2
|
|
||||||
name: fapr
|
|
||||||
description: A Helm chart for Fapr (F# Dapr workflow orchestrator)
|
|
||||||
type: application
|
|
||||||
version: v0.1.0
|
|
||||||
appVersion: v0.1.0
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
{{/* vim: set filetype=mustache: */}}
|
|
||||||
{{/*
|
|
||||||
Expand the name of the chart.
|
|
||||||
*/}}
|
|
||||||
{{- define "fapr.name" -}}
|
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a default fully qualified app name.
|
|
||||||
*/}}
|
|
||||||
{{- define "fapr.fullname" -}}
|
|
||||||
{{- if .Values.fullnameOverride }}
|
|
||||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- else }}
|
|
||||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
|
||||||
{{- if contains $name .Release.Name }}
|
|
||||||
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create chart name and version as used by the chart label.
|
|
||||||
*/}}
|
|
||||||
{{- define "fapr.chart" -}}
|
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Common labels
|
|
||||||
*/}}
|
|
||||||
{{- define "fapr.labels" -}}
|
|
||||||
helm.sh/chart: {{ include "fapr.chart" . }}
|
|
||||||
{{ include "fapr.selectorLabels" . }}
|
|
||||||
{{- if .Chart.AppVersion }}
|
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
||||||
{{- end }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Selector labels
|
|
||||||
*/}}
|
|
||||||
{{- define "fapr.selectorLabels" -}}
|
|
||||||
app.kubernetes.io/name: {{ include "fapr.name" . }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create the name of the service account to use
|
|
||||||
*/}}
|
|
||||||
{{- define "fapr.serviceAccountName" -}}
|
|
||||||
{{- if .Values.serviceAccount.create -}}
|
|
||||||
{{ default (include "fapr.fullname" .) .Values.serviceAccount.name }}
|
|
||||||
{{- else -}}
|
|
||||||
{{ default "default" .Values.serviceAccount.name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: {{ include "fapr.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "fapr.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
{{- if not .Values.autoscaling.enabled }}
|
|
||||||
replicas: {{ .Values.replicaCount }}
|
|
||||||
{{- end }}
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
{{- include "fapr.selectorLabels" . | nindent 6 }}
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
{{- with .Values.podAnnotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
|
||||||
{{- include "fapr.selectorLabels" . | nindent 8 }}
|
|
||||||
spec:
|
|
||||||
{{- with .Values.imagePullSecrets }}
|
|
||||||
imagePullSecrets:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
serviceAccountName: {{ include "fapr.serviceAccountName" . }}
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
||||||
containers:
|
|
||||||
- name: {{ .Chart.Name }}
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: {{ .Values.service.port }}
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
{{- toYaml .Values.env | nindent 12 }}
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 15
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 3
|
|
||||||
periodSeconds: 10
|
|
||||||
resources:
|
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
- name: appsettings
|
|
||||||
mountPath: /app/appsettings.json
|
|
||||||
subPath: appsettings.json
|
|
||||||
readOnly: true
|
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
{{- if .Values.persistence.enabled }}
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: {{ .Values.persistence.existingClaim | default (include "fapr.fullname" .) }}
|
|
||||||
{{- else }}
|
|
||||||
emptyDir: {}
|
|
||||||
{{- end }}
|
|
||||||
- name: appsettings
|
|
||||||
configMap:
|
|
||||||
name: {{ include "fapr.fullname" . }}-appsettings
|
|
||||||
{{- with .Values.nodeSelector }}
|
|
||||||
nodeSelector:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.affinity }}
|
|
||||||
affinity:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.tolerations }}
|
|
||||||
tolerations:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: {{ include "fapr.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{ include "fapr.labels" . | indent 4 }}
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- {{ .Values.persistence.accessMode | quote }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.size | quote }}
|
|
||||||
{{- if .Values.persistence.storageClass }}
|
|
||||||
{{- if (eq "-" .Values.persistence.storageClass) }}
|
|
||||||
storageClassName: ""
|
|
||||||
{{- else }}
|
|
||||||
storageClassName: "{{ .Values.persistence.storageClass }}"
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
{{- if .Values.redis.enabled -}}
|
|
||||||
apiVersion: dragonflydb.io/v1alpha1
|
|
||||||
kind: Dragonfly
|
|
||||||
metadata:
|
|
||||||
name: {{ include "fapr.fullname" . }}-redis
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
annotations:
|
|
||||||
linkerd.io/inject: disabled
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/created-by: dragonfly-operator
|
|
||||||
{{- include "fapr.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
args:
|
|
||||||
- --dbfilename=dump
|
|
||||||
- --maxmemory=$(MAX_MEMORY)Mi
|
|
||||||
- --proactor_threads=1
|
|
||||||
- --logtostderr
|
|
||||||
- --save_schedule=
|
|
||||||
env:
|
|
||||||
- name: MAX_MEMORY
|
|
||||||
valueFrom:
|
|
||||||
resourceFieldRef:
|
|
||||||
resource: limits.memory
|
|
||||||
divisor: 1Mi
|
|
||||||
replicas: {{ .Values.redis.replicas | default "1" }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: {{ .Values.redis.resources.cpu | default "100m" }}
|
|
||||||
memory: {{ .Values.redis.resources.memory | default "128Mi" }}
|
|
||||||
limits:
|
|
||||||
memory: {{ .Values.redis.resources.memory | default "128Mi" }}
|
|
||||||
authentication:
|
|
||||||
passwordFromSecret:
|
|
||||||
name: {{ .Values.redis.secret.name | default (printf "%s-redis" (include "fapr.fullname" .)) | quote }}
|
|
||||||
key: {{ .Values.redis.secret.key | quote }}
|
|
||||||
{{- if .Values.redis.backup.enabled }}
|
|
||||||
snapshot:
|
|
||||||
dir: /data
|
|
||||||
cron: "0 3 * * *"
|
|
||||||
enableOnMasterOnly: false
|
|
||||||
persistentVolumeClaimSpec:
|
|
||||||
storageClassName: {{ .Values.redis.storageClass | default "managed-nfs-storage" }}
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.redis.size | default "1Gi" }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: {{ include "fapr.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "fapr.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
type: {{ .Values.service.type }}
|
|
||||||
ports:
|
|
||||||
- port: {{ .Values.service.port }}
|
|
||||||
targetPort: http
|
|
||||||
protocol: TCP
|
|
||||||
name: http
|
|
||||||
selector:
|
|
||||||
{{- include "fapr.selectorLabels" . | nindent 4 }}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{{- if .Values.serviceAccount.create -}}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: {{ include "fapr.serviceAccountName" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "fapr.labels" . | nindent 4 }}
|
|
||||||
{{- with .Values.serviceAccount.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
# Default values for fapr.
|
|
||||||
|
|
||||||
replicaCount: 1
|
|
||||||
image:
|
|
||||||
repository: git.oceanbox.io/oceanbox/fapr/fapr
|
|
||||||
tag: v0.1.0
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
env:
|
|
||||||
- name: APP_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.name
|
|
||||||
- name: APP_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: gitlab-pull-secret
|
|
||||||
nameOverride: ""
|
|
||||||
fullnameOverride: ""
|
|
||||||
serviceAccount:
|
|
||||||
create: true
|
|
||||||
annotations: {}
|
|
||||||
name: ""
|
|
||||||
podAnnotations: {}
|
|
||||||
podSecurityContext:
|
|
||||||
fsGroup: 0
|
|
||||||
securityContext:
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
readOnlyRootFilesystem: false
|
|
||||||
runAsNonRoot: false
|
|
||||||
runAsUser: 0
|
|
||||||
service:
|
|
||||||
type: ClusterIP
|
|
||||||
port: 8080
|
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
existingClaim: ""
|
|
||||||
size: 1Gi
|
|
||||||
storageClass: "ceph-rbd"
|
|
||||||
accessMode: ReadWriteMany
|
|
||||||
redis:
|
|
||||||
enabled: true
|
|
||||||
replicas: 1
|
|
||||||
backup:
|
|
||||||
enabled: false
|
|
||||||
size: 1Gi
|
|
||||||
storageClass: "ceph-rbd"
|
|
||||||
secret:
|
|
||||||
name: ""
|
|
||||||
key: "redis-password"
|
|
||||||
resources:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
resources: {}
|
|
||||||
autoscaling:
|
|
||||||
enabled: false
|
|
||||||
minReplicas: 1
|
|
||||||
maxReplicas: 3
|
|
||||||
targetCPUUtilizationPercentage: 80
|
|
||||||
serviceMonitor:
|
|
||||||
enabled: false
|
|
||||||
nodeSelector: {}
|
|
||||||
tolerations: []
|
|
||||||
affinity: {}
|
|
||||||
@@ -47,7 +47,7 @@ service:
|
|||||||
port: 8080
|
port: 8080
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: haproxy
|
className: nginx
|
||||||
persistence:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
size: 1G
|
size: 1G
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ description: A Helm chart for Kubernetes
|
|||||||
type: application
|
type: application
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
version: v2.6.5
|
version: v2.5.2
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application.
|
# incremented each time you make changes to the application.
|
||||||
appVersion: v2.6.5
|
appVersion: v2.5.2
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: diagrid-dashboard
|
- name: diagrid-dashboard
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: git.oceanbox.io/oceanbox/poseidon/sorcerer
|
repository: git.oceanbox.io/oceanbox/poseidon/sorcerer
|
||||||
tag: v2.6.5
|
tag: v2.5.2
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
init:
|
init:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ releases:
|
|||||||
- name: argocd
|
- name: argocd
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
chart: argo/argo-cd
|
chart: argo/argo-cd
|
||||||
version: 9.5.12
|
version: 9.5.2
|
||||||
condition: argo.enabled
|
condition: argo.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/argo/values/argocd.yaml.gotmpl
|
- ../values/argo/values/argocd.yaml.gotmpl
|
||||||
@@ -43,7 +43,7 @@ releases:
|
|||||||
- name: argo-workflows
|
- name: argo-workflows
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
chart: argo/argo-workflows
|
chart: argo/argo-workflows
|
||||||
version: 1.0.13
|
version: 1.0.10
|
||||||
condition: argo.workflows.enabled
|
condition: argo.workflows.enabled
|
||||||
missingFileHandler: Info
|
missingFileHandler: Info
|
||||||
- name: manifests
|
- name: manifests
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
bases:
|
|
||||||
- ../envs/environments.yaml.gotmpl
|
|
||||||
|
|
||||||
commonLabels:
|
|
||||||
tier: oceanbox
|
|
||||||
|
|
||||||
releases:
|
|
||||||
- name: {{ .Environment.Name }}-fapr
|
|
||||||
namespace: {{ .Environment.Name }}-fapr
|
|
||||||
chart: ../charts/fapr
|
|
||||||
condition: fapr.enabled
|
|
||||||
values:
|
|
||||||
- ../values/fapr/values/values.yaml
|
|
||||||
- ../values/fapr/values/values-{{ .Environment.Name }}.yaml
|
|
||||||
- ../values/fapr/values/values-{{ .Environment.Name }}-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
|
|
||||||
postRenderer: ../bin/kustomizer
|
|
||||||
postRendererArgs:
|
|
||||||
- ../values/fapr/kustomize/{{ .Environment.Name }}-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}
|
|
||||||
missingFileHandler: Info
|
|
||||||
- name: manifests
|
|
||||||
namespace: {{ .Environment.Name }}-fapr
|
|
||||||
chart: manifests
|
|
||||||
condition: fapr.enabled
|
|
||||||
missingFileHandler: Info
|
|
||||||
values:
|
|
||||||
- ../values/env.yaml
|
|
||||||
- ../values/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
|
|
||||||
- ../values/fapr/env.yaml.gotmpl
|
|
||||||
- ../values/fapr/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml.gotmpl
|
|
||||||
hooks:
|
|
||||||
- events: [ prepare, cleanup ]
|
|
||||||
showlogs: true
|
|
||||||
command: ../bin/helmify
|
|
||||||
args:
|
|
||||||
- '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}'
|
|
||||||
- '{{`{{ .Release.Chart }}`}}'
|
|
||||||
- '{{`{{ .Environment.Name }}`}}'
|
|
||||||
- ../values/fapr/manifests
|
|
||||||
- manifests
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
bases:
|
|
||||||
- ../envs/environments.yaml.gotmpl
|
|
||||||
|
|
||||||
repositories:
|
|
||||||
- name: haproxytech
|
|
||||||
oci: true
|
|
||||||
url: 'ghcr.io/haproxytech/helm-charts'
|
|
||||||
|
|
||||||
commonLabels:
|
|
||||||
tier: system
|
|
||||||
|
|
||||||
releases:
|
|
||||||
- name: ingress-haproxy
|
|
||||||
namespace: ingress-haproxy
|
|
||||||
chart: haproxytech/kubernetes-ingress
|
|
||||||
version: 1.42.0
|
|
||||||
condition: haproxy.enabled
|
|
||||||
values:
|
|
||||||
- ../values/ingress-haproxy/values/ingress-haproxy.yaml.gotmpl
|
|
||||||
- ../values/ingress-haproxy/values/ingress-haproxy-{{ .Environment.Name }}.yaml.gotmpl
|
|
||||||
postRenderer: ../bin/kustomizer
|
|
||||||
postRendererArgs:
|
|
||||||
- ../values/ingress-haproxy/kustomize/{{ .Environment.Name }}
|
|
||||||
missingFileHandler: Info
|
|
||||||
- name: manifests
|
|
||||||
namespace: ingress-haproxy
|
|
||||||
chart: manifests
|
|
||||||
condition: haproxy.enabled
|
|
||||||
missingFileHandler: Info
|
|
||||||
values:
|
|
||||||
- ../values/env.yaml
|
|
||||||
- ../values/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
|
|
||||||
- ../values/ingress-haproxy/env.yaml.gotmpl
|
|
||||||
- ../values/ingress-haproxy/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml.gotmpl
|
|
||||||
hooks:
|
|
||||||
- events: [ prepare, cleanup ]
|
|
||||||
showlogs: true
|
|
||||||
command: ../bin/helmify
|
|
||||||
args:
|
|
||||||
- '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}'
|
|
||||||
- '{{`{{ .Release.Chart }}`}}'
|
|
||||||
- '{{`{{ .Environment.Name }}`}}'
|
|
||||||
- ../values/ingress-haproxy/manifests
|
|
||||||
- manifests
|
|
||||||
@@ -15,7 +15,7 @@ releases:
|
|||||||
- name: kyverno
|
- name: kyverno
|
||||||
namespace: kyverno
|
namespace: kyverno
|
||||||
chart: kyverno/kyverno
|
chart: kyverno/kyverno
|
||||||
version: 3.8.0
|
version: 3.7.1
|
||||||
condition: kyverno.enabled
|
condition: kyverno.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/kyverno/values/kyverno.yaml.gotmpl
|
- ../values/kyverno/values/kyverno.yaml.gotmpl
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ releases:
|
|||||||
- name: loki
|
- name: loki
|
||||||
namespace: loki
|
namespace: loki
|
||||||
chart: loki/loki
|
chart: loki/loki
|
||||||
version: 7.0.0
|
version: 6.55.0
|
||||||
condition: loki.enabled
|
condition: loki.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/loki/values/loki.yaml.gotmpl
|
- ../values/loki/values/loki.yaml.gotmpl
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ releases:
|
|||||||
namespace: {{ .Environment.Name }}-openfga
|
namespace: {{ .Environment.Name }}-openfga
|
||||||
{{- end }}
|
{{- end }}
|
||||||
chart: openfga/openfga
|
chart: openfga/openfga
|
||||||
version: 0.3.3
|
version: 0.3.2
|
||||||
condition: openfga.enabled
|
condition: openfga.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/openfga/values/values.yaml
|
- ../values/openfga/values/values.yaml
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ releases:
|
|||||||
- name: opentelemetry-collector
|
- name: opentelemetry-collector
|
||||||
namespace: otel
|
namespace: otel
|
||||||
chart: open-telemetry/opentelemetry-collector
|
chart: open-telemetry/opentelemetry-collector
|
||||||
version: 0.153.0
|
version: 0.150.1
|
||||||
condition: otel.enabled
|
condition: otel.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/opentelemetry-collector/values/values.yaml
|
- ../values/opentelemetry-collector/values/values.yaml
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ releases:
|
|||||||
- name: spegel
|
- name: spegel
|
||||||
namespace: spegel
|
namespace: spegel
|
||||||
chart: spegel/spegel
|
chart: spegel/spegel
|
||||||
version: 0.6.0
|
version: 0.7.0
|
||||||
condition: spegel.enabled
|
condition: spegel.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/spegel/values/spegel.yaml.gotmpl
|
- ../values/spegel/values/spegel.yaml.gotmpl
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ releases:
|
|||||||
- name: umami
|
- name: umami
|
||||||
namespace: analytics
|
namespace: analytics
|
||||||
chart: umami/umami
|
chart: umami/umami
|
||||||
version: 7.9.1
|
version: 7.7.20
|
||||||
condition: umami.enabled
|
condition: umami.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/umami/values/values.yaml
|
- ../values/umami/values/values.yaml
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ releases:
|
|||||||
- name: velero
|
- name: velero
|
||||||
namespace: velero
|
namespace: velero
|
||||||
chart: velero/velero
|
chart: velero/velero
|
||||||
version: 12.0.1
|
version: 12.0.0
|
||||||
condition: velero.enabled
|
condition: velero.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/velero/values/velero.yaml.gotmpl
|
- ../values/velero/values/velero.yaml.gotmpl
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ releases:
|
|||||||
- name: x509-exporter
|
- name: x509-exporter
|
||||||
namespace: x509-exporter
|
namespace: x509-exporter
|
||||||
chart: x509-exporter/x509-certificate-exporter
|
chart: x509-exporter/x509-certificate-exporter
|
||||||
version: 3.21.0
|
version: 3.20.1
|
||||||
condition: x509_exporter.enabled
|
condition: x509_exporter.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/x509-exporter/values/x509-exporter.yaml.gotmpl
|
- ../values/x509-exporter/values/x509-exporter.yaml.gotmpl
|
||||||
|
|||||||
@@ -94,8 +94,6 @@ spec:
|
|||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
- namespace: jobset-system
|
- namespace: jobset-system
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
- namespace: ingress-haproxy
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
- namespace: dex
|
- namespace: dex
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
- namespace: cra-agent
|
- namespace: cra-agent
|
||||||
@@ -150,4 +148,3 @@ spec:
|
|||||||
- https://twin.github.io/helm-charts
|
- https://twin.github.io/helm-charts
|
||||||
- https://charts.dexidp.io
|
- https://charts.dexidp.io
|
||||||
- public.ecr.aws/diagrid/catalyst
|
- public.ecr.aws/diagrid/catalyst
|
||||||
- ghcr.io/haproxytech/helm-charts
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
"https://maps.beta.oceanbox.io"
|
"https://maps.beta.oceanbox.io"
|
||||||
],
|
],
|
||||||
"appName": "atlantis",
|
"appName": "atlantis",
|
||||||
"appEnv": "preprod",
|
"appEnv": "prod",
|
||||||
"appNamespace": "atlantis",
|
"appNamespace": "atlantis",
|
||||||
"appVersion": "2.95.1",
|
"appVersion": "2.95.1",
|
||||||
"otelCollector": "http://opentelemetry-collector.otel.svc:4317",
|
"otelCollector": "http://opentelemetry-collector.otel.svc:4317",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: staging-atlantis-actor-config
|
name: staging-atlantis-actor-config
|
||||||
data:
|
data:
|
||||||
XTRACT_IMAGE: "git.oceanbox.io/oceanbox/katamari/excavator:v1.2.12"
|
XTRACT_IMAGE: "git.oceanbox.io/oceanbox/katamari/excavator:v1.2.8"
|
||||||
XTRACT_QUEUE: "dev-queue"
|
XTRACT_QUEUE: "dev-queue"
|
||||||
PLUME_IMAGE: "git.oceanbox.io/oceanbox/katamari/plume:v1.2.12"
|
PLUME_IMAGE: "git.oceanbox.io/oceanbox/katamari/plume:v1.2.8"
|
||||||
PLUME_QUEUE: "dev-queue"
|
PLUME_QUEUE: "dev-queue"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: git.oceanbox.io/oceanbox/poseidon/atlantis
|
repository: git.oceanbox.io/oceanbox/poseidon/atlantis
|
||||||
tag: v2.6.5
|
tag: v1.48.1
|
||||||
|
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
dapr.io/app-id: "beta-atlantis"
|
dapr.io/app-id: "beta-atlantis"
|
||||||
@@ -11,7 +11,7 @@ env:
|
|||||||
- name: APP_NAMESPACE
|
- name: APP_NAMESPACE
|
||||||
value: beta-atlantis
|
value: beta-atlantis
|
||||||
- name: APP_VERSION
|
- name: APP_VERSION
|
||||||
value: "2.6.5-beta"
|
value: "2.97.4-beta"
|
||||||
- name: LOG_LEVEL
|
- name: LOG_LEVEL
|
||||||
value: "1"
|
value: "1"
|
||||||
- name: ANALYTICS_WEB_ID
|
- name: ANALYTICS_WEB_ID
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: git.oceanbox.io/oceanbox/poseidon/atlantis
|
repository: git.oceanbox.io/oceanbox/poseidon/atlantis
|
||||||
tag: 184c18a8-debug
|
tag: 5d810716-debug
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
dapr.io/app-id: "staging-atlantis"
|
dapr.io/app-id: "staging-atlantis"
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -3,14 +3,17 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
haproxy.org/backend-protocol: h1
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
haproxy.org/timeout-server: 600s
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: attic
|
app.kubernetes.io/component: attic
|
||||||
name: attic
|
name: attic
|
||||||
namespace: attic
|
namespace: attic
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: haproxy
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: attic.srv.oceanbox.io
|
- host: attic.srv.oceanbox.io
|
||||||
http:
|
http:
|
||||||
|
|||||||
@@ -9,6 +9,14 @@ metadata:
|
|||||||
name: shared-gateway
|
name: shared-gateway
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
spec:
|
spec:
|
||||||
|
infrastructure:
|
||||||
|
annotations:
|
||||||
|
load-balancer.hetzner.cloud/location: hel1
|
||||||
|
load-balancer.hetzner.cloud/type: lb11
|
||||||
|
load-balancer.hetzner.cloud/name: load-balancer-2
|
||||||
|
load-balancer.hetzner.cloud/use-private-ip: "true"
|
||||||
|
load-balancer.hetzner.cloud/uses-proxyprotocol: "true"
|
||||||
|
load-balancer.hetzner.cloud/http-redirect-https: "false"
|
||||||
gatewayClassName: cilium
|
gatewayClassName: cilium
|
||||||
listeners:
|
listeners:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
tag: "5e339995-debug"
|
tag: "ea8cf7dc-debug"
|
||||||
env:
|
env:
|
||||||
- name: APP_VERSION
|
- name: APP_VERSION
|
||||||
value: "0.0.0"
|
value: "0.0.0"
|
||||||
@@ -8,11 +8,13 @@ env:
|
|||||||
value: "1"
|
value: "1"
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: "haproxy"
|
className: "nginx"
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
haproxy.org/backend-protocol: h1
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
haproxy.org/cors-enable: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
oceanbox.io/expose: internal
|
oceanbox.io/expose: internal
|
||||||
hosts:
|
hosts:
|
||||||
- host: docs.oceanbox.io
|
- host: docs.oceanbox.io
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
fapr:
|
|
||||||
enabled: true
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
fapr:
|
|
||||||
enabled: true
|
|
||||||
autosync: {{ if or (eq .Environment.Name "prod") (eq .Environment.Name "beta") }}false{{ else }}true{{ end }}
|
|
||||||
env: {{ .Environment.Name }}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- _manifest.yaml
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"appName": "fapr",
|
|
||||||
"appEnv": "prod",
|
|
||||||
"logLevel": "Information",
|
|
||||||
"aromeOutputDir": "/data/hdd/data/AROME",
|
|
||||||
"aromeStartDate": "2026-04-24",
|
|
||||||
"nveOutputDir": "/data/hdd/data/river-data/Data",
|
|
||||||
"nveNdays": 5000,
|
|
||||||
"nveApiUrl": "https://chartserver.nve.no/ShowData.aspx?req=getchart&ver=1.0",
|
|
||||||
"riverrunBinary": "/app/riverrun",
|
|
||||||
"norshelfOutputDir": "/data/hdd/data/norshelf/sea_norshelf_files",
|
|
||||||
"norshelfStartDate": "2026-03-01",
|
|
||||||
"nemoOutputDir": "/data/hdd/data/NEMO",
|
|
||||||
"copernicusmarineBinary": "/usr/local/bin/copernicusmarine",
|
|
||||||
"copernicusUsername": "",
|
|
||||||
"copernicusPassword": "",
|
|
||||||
"murOutputDir": "/data/hdd/data/river-data/MUR/MUR_SST_nc",
|
|
||||||
"netrcPath": "/root/.netrc",
|
|
||||||
"norkystOutputDir": "/data/hdd/data/norkyst"
|
|
||||||
}
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Component
|
|
||||||
metadata:
|
|
||||||
name: cron-arome
|
|
||||||
spec:
|
|
||||||
type: bindings.cron
|
|
||||||
version: v1
|
|
||||||
metadata:
|
|
||||||
- name: schedule
|
|
||||||
value: "0 6 * * *"
|
|
||||||
scopes:
|
|
||||||
- prod-fapr
|
|
||||||
---
|
|
||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Component
|
|
||||||
metadata:
|
|
||||||
name: cron-nve
|
|
||||||
spec:
|
|
||||||
type: bindings.cron
|
|
||||||
version: v1
|
|
||||||
metadata:
|
|
||||||
- name: schedule
|
|
||||||
value: "0 8 * * *"
|
|
||||||
scopes:
|
|
||||||
- prod-fapr
|
|
||||||
---
|
|
||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Component
|
|
||||||
metadata:
|
|
||||||
name: cron-norshelf
|
|
||||||
spec:
|
|
||||||
type: bindings.cron
|
|
||||||
version: v1
|
|
||||||
metadata:
|
|
||||||
- name: schedule
|
|
||||||
value: "0 13 * * *"
|
|
||||||
scopes:
|
|
||||||
- prod-fapr
|
|
||||||
---
|
|
||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Component
|
|
||||||
metadata:
|
|
||||||
name: cron-nemo
|
|
||||||
spec:
|
|
||||||
type: bindings.cron
|
|
||||||
version: v1
|
|
||||||
metadata:
|
|
||||||
- name: schedule
|
|
||||||
value: "0 13 * * *"
|
|
||||||
scopes:
|
|
||||||
- prod-fapr
|
|
||||||
---
|
|
||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Component
|
|
||||||
metadata:
|
|
||||||
name: cron-mur
|
|
||||||
spec:
|
|
||||||
type: bindings.cron
|
|
||||||
version: v1
|
|
||||||
metadata:
|
|
||||||
- name: schedule
|
|
||||||
value: "0 6 * * *"
|
|
||||||
scopes:
|
|
||||||
- prod-fapr
|
|
||||||
---
|
|
||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Component
|
|
||||||
metadata:
|
|
||||||
name: cron-norkyst
|
|
||||||
spec:
|
|
||||||
type: bindings.cron
|
|
||||||
version: v1
|
|
||||||
metadata:
|
|
||||||
- name: schedule
|
|
||||||
value: "0 13 * * *"
|
|
||||||
scopes:
|
|
||||||
- prod-fapr
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/envFrom
|
|
||||||
value: []
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
generatorOptions:
|
|
||||||
disableNameSuffixHash: true
|
|
||||||
configMapGenerator:
|
|
||||||
- name: prod-fapr-appsettings
|
|
||||||
files:
|
|
||||||
- appsettings.json
|
|
||||||
patches:
|
|
||||||
- target:
|
|
||||||
group: apps
|
|
||||||
version: v1
|
|
||||||
kind: Deployment
|
|
||||||
path: deployment_patch.yaml
|
|
||||||
resources:
|
|
||||||
- ../base
|
|
||||||
- pv.yaml
|
|
||||||
- pvc.yaml
|
|
||||||
- secrets.yaml
|
|
||||||
- secretstore.yaml
|
|
||||||
- statestore.yaml
|
|
||||||
- tracing.yaml
|
|
||||||
- cron-bindings.yaml
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
name: pv-prod-fapr-ceph-data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
capacity:
|
|
||||||
storage: 1Gi
|
|
||||||
csi:
|
|
||||||
driver: rook-ceph.cephfs.csi.ceph.com
|
|
||||||
nodeStageSecretRef:
|
|
||||||
name: rook-csi-cephfs-node
|
|
||||||
namespace: rook-ceph
|
|
||||||
volumeAttributes:
|
|
||||||
clusterID: rook-ceph
|
|
||||||
fsName: data
|
|
||||||
rootPath: /
|
|
||||||
staticVolume: "true"
|
|
||||||
volumeHandle: pv-prod-fapr-ceph-data
|
|
||||||
persistentVolumeReclaimPolicy: Retain
|
|
||||||
volumeMode: Filesystem
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: prod-fapr-ceph-data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
storageClassName: ""
|
|
||||||
volumeMode: Filesystem
|
|
||||||
volumeName: pv-prod-fapr-ceph-data
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: prod-fapr-redis
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Component
|
|
||||||
metadata:
|
|
||||||
name: secretstore
|
|
||||||
spec:
|
|
||||||
type: secretstores.kubernetes
|
|
||||||
version: v1
|
|
||||||
metadata:
|
|
||||||
- name: defaultNamespace
|
|
||||||
value: prod-fapr
|
|
||||||
scopes:
|
|
||||||
- prod-fapr
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Component
|
|
||||||
metadata:
|
|
||||||
name: statestore
|
|
||||||
spec:
|
|
||||||
type: state.redis
|
|
||||||
version: v1
|
|
||||||
metadata:
|
|
||||||
- name: redisHost
|
|
||||||
value: prod-fapr-redis:6379
|
|
||||||
- name: redisUsername
|
|
||||||
value: default
|
|
||||||
- name: redisPassword
|
|
||||||
secretKeyRef:
|
|
||||||
name: prod-fapr-redis
|
|
||||||
key: redis-password
|
|
||||||
- name: actorStateStore
|
|
||||||
value: "true"
|
|
||||||
- name: redisDB
|
|
||||||
value: "0"
|
|
||||||
scopes:
|
|
||||||
- prod-fapr
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Configuration
|
|
||||||
metadata:
|
|
||||||
name: tracing
|
|
||||||
spec:
|
|
||||||
tracing:
|
|
||||||
samplingRate: "1"
|
|
||||||
otel:
|
|
||||||
endpointAddress: "10.255.241.12:4317"
|
|
||||||
protocol: grpc
|
|
||||||
isSecure: false
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{{ if .Values.clusterConfig.argo.enabled }}
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: {{ .Values.fapr.env }}-fapr
|
|
||||||
namespace: argocd
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
||||||
argocd.argoproj.io/compare-options: ServerSideDiff=true
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: {{ .Values.fapr.env }}-fapr
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
project: atlantis
|
|
||||||
sources:
|
|
||||||
- repoURL: {{ .Values.clusterConfig.manifests }}
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: helmfile.d
|
|
||||||
plugin:
|
|
||||||
name: helmfile-cmp
|
|
||||||
env:
|
|
||||||
- name: CLUSTER_NAME
|
|
||||||
value: {{ .Values.clusterConfig.cluster }}
|
|
||||||
- name: HELMFILE_ENVIRONMENT
|
|
||||||
value: {{ .Values.fapr.env }}
|
|
||||||
- name: HELMFILE_FILE_PATH
|
|
||||||
value: fapr.yaml.gotmpl
|
|
||||||
- repoURL: https://git.oceanbox.io/platform/manifests.git
|
|
||||||
targetRevision: main
|
|
||||||
ref: values
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
- ApplyOutOfSyncOnly=true
|
|
||||||
{{- if .Values.fapr.autosync }}
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: false
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
replicaCount: 1
|
|
||||||
|
|
||||||
podAnnotations:
|
|
||||||
dapr.io/enabled: "true"
|
|
||||||
dapr.io/app-id: "prod-fapr"
|
|
||||||
dapr.io/app-port: "8080"
|
|
||||||
dapr.io/api-token-secret: "dapr-api-token"
|
|
||||||
dapr.io/config: "tracing"
|
|
||||||
dapr.io/app-protocol: "http"
|
|
||||||
dapr.io/log-as-json: "true"
|
|
||||||
dapr.io/sidecar-cpu-request: "10m"
|
|
||||||
dapr.io/sidecar-memory-request: "50Mi"
|
|
||||||
|
|
||||||
env:
|
|
||||||
- name: APP_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.name
|
|
||||||
- name: APP_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
- name: DAPR_API_TOKEN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: dapr-api-token
|
|
||||||
key: token
|
|
||||||
|
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
existingClaim: prod-fapr-ceph-data
|
|
||||||
|
|
||||||
redis:
|
|
||||||
enabled: true
|
|
||||||
replicas: 1
|
|
||||||
backup:
|
|
||||||
enabled: true
|
|
||||||
size: 2Gi
|
|
||||||
storageClass: "ceph-rbd"
|
|
||||||
secret:
|
|
||||||
name: "prod-fapr-redis"
|
|
||||||
key: "redis-password"
|
|
||||||
resources:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
|
|
||||||
affinity:
|
|
||||||
nodeAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
nodeSelectorTerms:
|
|
||||||
- matchExpressions:
|
|
||||||
- key: "topology.kubernetes.io/group"
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- srv
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
# Base values for fapr - overridden per environment
|
|
||||||
@@ -3,15 +3,17 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: ca-issuer
|
cert-manager.io/cluster-issuer: ca-issuer
|
||||||
haproxy.org/backend-protocol: h1
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
haproxy.org/cors-allow-headers: Content-Type, x-gatus-cache
|
nginx.ingress.kubernetes.io/cors-allow-headers: Content-Type, x-gatus-cache
|
||||||
haproxy.org/cors-enable: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: gatus
|
app.kubernetes.io/name: gatus
|
||||||
name: gatus
|
name: gatus
|
||||||
namespace: uptime
|
namespace: uptime
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: haproxy
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: uptime.adm.hel1.obx
|
- host: uptime.adm.hel1.obx
|
||||||
http:
|
http:
|
||||||
@@ -22,7 +24,7 @@ spec:
|
|||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
path: /
|
path: /
|
||||||
pathType: Prefix
|
pathType: ImplementationSpecific
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- uptime.adm.hel1.obx
|
- uptime.adm.hel1.obx
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ replicaCount: 1
|
|||||||
image:
|
image:
|
||||||
registry: "docker.gitea.com"
|
registry: "docker.gitea.com"
|
||||||
repository: gitea
|
repository: gitea
|
||||||
tag: "1.26.1"
|
tag: "1.26.0"
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@@ -135,12 +135,15 @@ gitea:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: haproxy
|
className: nginx
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
haproxy.org/backend-protocol: h1
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
haproxy.org/timeout-server: 600s
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
haproxy.org/allow-list: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,172.19.255.0/24,100.64.0.0/12,185.125.160.4/32,37.27.203.38/32
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||||
|
nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,172.19.255.0/24,100.64.0.0/12,185.125.160.4/32,37.27.203.38/32
|
||||||
hosts:
|
hosts:
|
||||||
- host: git.oceanbox.io
|
- host: git.oceanbox.io
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
haproxy:
|
|
||||||
enabled: true
|
|
||||||
autosync: true
|
|
||||||
pdb:
|
|
||||||
minAvailable: 1
|
|
||||||
resources:
|
|
||||||
controller:
|
|
||||||
cpu: "100m"
|
|
||||||
memory: "100Mi"
|
|
||||||
annotations:
|
|
||||||
load-balancer.hetzner.cloud/location: hel1
|
|
||||||
load-balancer.hetzner.cloud/name: load-balancer-1
|
|
||||||
load-balancer.hetzner.cloud/type: lb11
|
|
||||||
load-balancer.hetzner.cloud/use-private-ip: "true"
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
haproxy:
|
|
||||||
enabled: false
|
|
||||||
autosync: true
|
|
||||||
pdb:
|
|
||||||
minAvailable: 1
|
|
||||||
resources:
|
|
||||||
controller:
|
|
||||||
cpu: "100m"
|
|
||||||
memory: "100Mi"
|
|
||||||
annotations: []
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
{{- if .Values.clusterConfig.argo.enabled }}
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: ingress-haproxy
|
|
||||||
namespace: argocd
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: ingress-haproxy
|
|
||||||
server: 'https://kubernetes.default.svc'
|
|
||||||
sources:
|
|
||||||
- repoURL: {{ .Values.clusterConfig.manifests }}
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: helmfile.d
|
|
||||||
plugin:
|
|
||||||
name: helmfile-cmp
|
|
||||||
env:
|
|
||||||
- name: CLUSTER_NAME
|
|
||||||
value: {{ .Values.clusterConfig.cluster }}
|
|
||||||
- name: HELMFILE_ENVIRONMENT
|
|
||||||
value: default
|
|
||||||
- name: HELMFILE_FILE_PATH
|
|
||||||
value: ingress-haproxy.yaml.gotmpl
|
|
||||||
project: sys
|
|
||||||
syncPolicy:
|
|
||||||
managedNamespaceMetadata:
|
|
||||||
labels:
|
|
||||||
component: sys
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
- ApplyOutOfSyncOnly=true
|
|
||||||
- ServerSideApply=true
|
|
||||||
{{- if .Values.haproxy.autosync }}
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
# selfHeal: false
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
|
||||||
apiVersion: cilium.io/v2
|
|
||||||
kind: CiliumNetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: allow-host-traffic
|
|
||||||
namespace: ingress-haproxy
|
|
||||||
spec:
|
|
||||||
egress:
|
|
||||||
- toEntities:
|
|
||||||
- kube-apiserver
|
|
||||||
- host
|
|
||||||
endpointSelector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: kubernetes-ingress
|
|
||||||
app.kubernetes.io/instance: ingress-haproxy
|
|
||||||
{{- end }}
|
|
||||||
-16
@@ -1,16 +0,0 @@
|
|||||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
|
||||||
apiVersion: cilium.io/v2
|
|
||||||
kind: CiliumNetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: allow-hubble-traffic
|
|
||||||
namespace: ingress-haproxy
|
|
||||||
spec:
|
|
||||||
egress:
|
|
||||||
- toFQDNs:
|
|
||||||
- matchPattern: hubble.*.*.*
|
|
||||||
- matchPattern: hubble.*.*.*.*
|
|
||||||
endpointSelector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: kubernetes-ingress
|
|
||||||
app.kubernetes.io/instance: ingress-haproxy
|
|
||||||
{{- end }}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
|
||||||
apiVersion: cilium.io/v2
|
|
||||||
kind: CiliumNetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: allow-prometheus-metrics
|
|
||||||
namespace: ingress-haproxy
|
|
||||||
spec:
|
|
||||||
endpointSelector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/instance: ingress-haproxy
|
|
||||||
ingress:
|
|
||||||
- fromEndpoints:
|
|
||||||
- matchLabels:
|
|
||||||
io.kubernetes.pod.namespace: prometheus
|
|
||||||
- toPorts:
|
|
||||||
- ports:
|
|
||||||
- port: "1024"
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
-21
@@ -1,21 +0,0 @@
|
|||||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
|
||||||
apiVersion: cilium.io/v2
|
|
||||||
kind: CiliumNetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: allow-world-to-ingress-haproxy
|
|
||||||
namespace: ingress-haproxy
|
|
||||||
spec:
|
|
||||||
endpointSelector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: kubernetes-ingress
|
|
||||||
app.kubernetes.io/instance: ingress-haproxy
|
|
||||||
ingress:
|
|
||||||
- fromEntities:
|
|
||||||
- world
|
|
||||||
- toPorts:
|
|
||||||
- ports:
|
|
||||||
- port: "80"
|
|
||||||
protocol: TCP
|
|
||||||
- port: "443"
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,110 +0,0 @@
|
|||||||
## HAProxy Kubernetes Ingress Controller configuration
|
|
||||||
## Ref: https://www.haproxy.com/documentation/kubernetes-ingress/
|
|
||||||
##
|
|
||||||
controller:
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: {{ .Values.haproxy.resources.controller.cpu }}
|
|
||||||
memory: {{ .Values.haproxy.resources.controller.memory }}
|
|
||||||
|
|
||||||
ingressClass: haproxy
|
|
||||||
|
|
||||||
ingressClassResource:
|
|
||||||
name: haproxy
|
|
||||||
default: true
|
|
||||||
|
|
||||||
config:
|
|
||||||
body-size: "0"
|
|
||||||
tune.bufsize: "131072"
|
|
||||||
ssl-redirect: "true"
|
|
||||||
forwarded-for: "true"
|
|
||||||
|
|
||||||
# Disable QUIC ar Hetzner LB doesn't support UDP
|
|
||||||
quic-enabled: "false"
|
|
||||||
|
|
||||||
# Proxy protocol
|
|
||||||
proxy-protocol: "10.0.0.0/8"
|
|
||||||
use-proxy-protocol: "true"
|
|
||||||
|
|
||||||
tolerations:
|
|
||||||
- key: unschedulable
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
|
|
||||||
affinity:
|
|
||||||
nodeAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
nodeSelectorTerms:
|
|
||||||
- matchExpressions:
|
|
||||||
- key: kubernetes.io/hostname
|
|
||||||
operator: In
|
|
||||||
values: {{ .Values.clusterConfig.ingress_nodes }}
|
|
||||||
|
|
||||||
podAntiAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- labelSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- key: app.kubernetes.io/instance
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- ingress-haproxy
|
|
||||||
- key: app.kubernetes.io/name
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- kubernetes-ingress
|
|
||||||
topologyKey: "kubernetes.io/hostname"
|
|
||||||
|
|
||||||
replicaCount: {{ .Values.clusterConfig.ingress_replica_count }}
|
|
||||||
|
|
||||||
PodDisruptionBudget:
|
|
||||||
enable: true
|
|
||||||
minAvailable: {{ .Values.haproxy.pdb.minAvailable }}
|
|
||||||
|
|
||||||
service:
|
|
||||||
{{- if .Values.clusterConfig.ingress_loadbalancer }}
|
|
||||||
type: LoadBalancer
|
|
||||||
{{- if .Values.clusterConfig.ingress_nodeport }}
|
|
||||||
nodePorts:
|
|
||||||
http: 30080
|
|
||||||
https: 30443
|
|
||||||
{{- end }}
|
|
||||||
{{- else if .Values.clusterConfig.ingress_nodeport }}
|
|
||||||
type: NodePort
|
|
||||||
externalTrafficPolicy: Local
|
|
||||||
nodePorts:
|
|
||||||
http: 30080
|
|
||||||
https: 30443
|
|
||||||
{{- else }}
|
|
||||||
type: ClusterIP
|
|
||||||
{{- end }}
|
|
||||||
annotations:
|
|
||||||
{{- with .Values.haproxy.annotations }}
|
|
||||||
{{ toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
hostNetwork: {{ .Values.clusterConfig.ingress_hostnetwork }}
|
|
||||||
|
|
||||||
hostPorts:
|
|
||||||
enable: {{ .Values.clusterConfig.ingress_hostport }}
|
|
||||||
http: 80
|
|
||||||
https: 443
|
|
||||||
|
|
||||||
stats:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
prometheus:
|
|
||||||
enabled: true
|
|
||||||
port: 1024
|
|
||||||
service:
|
|
||||||
annotations:
|
|
||||||
prometheus.io/scrape: "true"
|
|
||||||
prometheus.io/port: "1024"
|
|
||||||
|
|
||||||
serviceMonitor:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
extraArgs:
|
|
||||||
- --disable-quic
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
nginx:
|
nginx:
|
||||||
enabled: false
|
enabled: true
|
||||||
autosync: true
|
autosync: true
|
||||||
pdb:
|
pdb:
|
||||||
minAvailable: 1
|
minAvailable: 1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
tag: "fd47bfc5-debug"
|
tag: "ad49e745-debug"
|
||||||
env:
|
env:
|
||||||
- name: APP_VERSION
|
- name: APP_VERSION
|
||||||
value: "0.0.0"
|
value: "0.0.0"
|
||||||
@@ -8,11 +8,13 @@ env:
|
|||||||
value: "1"
|
value: "1"
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: "haproxy"
|
className: "nginx"
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
haproxy.org/backend-protocol: h1
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
haproxy.org/cors-enable: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
oceanbox.io/expose: internal
|
oceanbox.io/expose: internal
|
||||||
hosts:
|
hosts:
|
||||||
- host: makai.oceanbox.io
|
- host: makai.oceanbox.io
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: git.oceanbox.io/oceanbox/poseidon/sorcerer
|
repository: git.oceanbox.io/oceanbox/poseidon/sorcerer
|
||||||
tag: v2.6.1
|
tag: v1.48.1
|
||||||
|
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
dapr.io/enabled: "true"
|
dapr.io/enabled: "true"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: git.oceanbox.io/oceanbox/poseidon/sorcerer
|
repository: git.oceanbox.io/oceanbox/poseidon/sorcerer
|
||||||
tag: ade08af1-debug
|
tag: 651291bd-debug
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
dapr.io/enabled: "true"
|
dapr.io/enabled: "true"
|
||||||
dapr.io/app-id: "staging-sorcerer"
|
dapr.io/app-id: "staging-sorcerer"
|
||||||
|
|||||||
@@ -2,11 +2,13 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/auth-signin: https://$host/oauth2/start?rd=$escaped_request_uri
|
||||||
|
nginx.ingress.kubernetes.io/auth-url: https://$host/oauth2/auth
|
||||||
oceanbox.io/expose: internal
|
oceanbox.io/expose: internal
|
||||||
name: hubble-ui
|
name: hubble-ui
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: haproxy
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: hubble.hel1.oceanbox.io
|
- host: hubble.hel1.oceanbox.io
|
||||||
http:
|
http:
|
||||||
@@ -24,11 +26,13 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
|
nginx.ingress.kubernetes.io/proxy-buffer-size: 8k
|
||||||
|
nginx.ingress.kubernetes.io/proxy-busy-buffers-size: 16k
|
||||||
oceanbox.io/expose: internal
|
oceanbox.io/expose: internal
|
||||||
name: hubble-ui-oauth2-proxy
|
name: hubble-ui-oauth2-proxy
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: haproxy
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: hubble.hel1.oceanbox.io
|
- host: hubble.hel1.oceanbox.io
|
||||||
http:
|
http:
|
||||||
|
|||||||
@@ -14,8 +14,9 @@ metadata:
|
|||||||
whitelist to the already existing ones
|
whitelist to the already existing ones
|
||||||
spec:
|
spec:
|
||||||
mutateExistingOnPolicyUpdate: false
|
mutateExistingOnPolicyUpdate: false
|
||||||
|
#precondition: has whitelist annotation or
|
||||||
rules:
|
rules:
|
||||||
- name: ensure-haproxy-allowlist-exists
|
- name: ensure-nginx-whitelist-exists
|
||||||
skipBackgroundRequests: true
|
skipBackgroundRequests: true
|
||||||
match:
|
match:
|
||||||
resources:
|
resources:
|
||||||
@@ -27,8 +28,8 @@ spec:
|
|||||||
patchStrategicMerge:
|
patchStrategicMerge:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
+(haproxy.org/allow-list): ""
|
+(nginx.ingress.kubernetes.io/whitelist-source-range): ""
|
||||||
- name: append-existing-haproxy-allowlist
|
- name: append-existing-whitelist
|
||||||
skipBackgroundRequests: true
|
skipBackgroundRequests: true
|
||||||
match:
|
match:
|
||||||
resources:
|
resources:
|
||||||
@@ -38,7 +39,7 @@ spec:
|
|||||||
oceanbox.io/expose: internal
|
oceanbox.io/expose: internal
|
||||||
preconditions:
|
preconditions:
|
||||||
any:
|
any:
|
||||||
- key: "{{`{{request.object.metadata.annotations.\"haproxy.org/allow-list\"}}`}}"
|
- key: "{{`{{request.object.metadata.annotations.\"nginx.ingress.kubernetes.io/whitelist-source-range\"}}`}}"
|
||||||
operator: NotEquals
|
operator: NotEquals
|
||||||
value: ""
|
value: ""
|
||||||
mutate:
|
mutate:
|
||||||
@@ -46,9 +47,9 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.clusterConfig.ingress_whitelist }}
|
{{- with .Values.clusterConfig.ingress_whitelist }}
|
||||||
haproxy.org/allow-list: "{{`{{ @ }}`}},{{ join "," . }}"
|
nginx.ingress.kubernetes.io/whitelist-source-range: "{{`{{ @ }}`}},{{ join "," . }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: add-haproxy-allowlist
|
- name: add-nginx-whitelist
|
||||||
skipBackgroundRequests: true
|
skipBackgroundRequests: true
|
||||||
match:
|
match:
|
||||||
resources:
|
resources:
|
||||||
@@ -58,7 +59,7 @@ spec:
|
|||||||
oceanbox.io/expose: internal
|
oceanbox.io/expose: internal
|
||||||
preconditions:
|
preconditions:
|
||||||
any:
|
any:
|
||||||
- key: "{{`{{request.object.metadata.annotations.\"haproxy.org/allow-list\"}}`}}"
|
- key: "{{`{{request.object.metadata.annotations.\"nginx.ingress.kubernetes.io/whitelist-source-range\"}}`}}"
|
||||||
operator: Equals
|
operator: Equals
|
||||||
value: ""
|
value: ""
|
||||||
mutate:
|
mutate:
|
||||||
@@ -66,6 +67,7 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.clusterConfig.ingress_whitelist }}
|
{{- with .Values.clusterConfig.ingress_whitelist }}
|
||||||
haproxy.org/allow-list: "{{ join "," . }}"
|
nginx.ingress.kubernetes.io/whitelist-source-range: "{{ join "," . }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user