feat: Create makai

This commit is contained in:
2025-08-25 10:14:38 +02:00
parent fdd05474ec
commit 7ac2f37455
19 changed files with 607 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
makai:
enabled: true
+3
View File
@@ -0,0 +1,3 @@
makai:
enabled: false
autosync: false
+39
View File
@@ -0,0 +1,39 @@
{{ if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .Values.makai.env }}-makai
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.makai.env }}-makai
server: https://kubernetes.default.svc
project: default
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.makai.env }}
- name: HELMFILE_FILE_PATH
value: makai.yaml.gotmpl
syncPolicy:
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
{{- if .Values.makai.autosync }}
automated:
prune: true
selfHeal: false
{{- end }}
{{- end }}
@@ -0,0 +1,13 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-cache-nixos
namespace: ncps
spec:
egress:
- toFQDNs:
- matchPattern: 'cache.nixos.org'
- matchPattern: 'nix-community.cachix.org'
endpointSelector:
matchLabels:
app: nix-cache
+25
View File
@@ -0,0 +1,25 @@
replicaCount: 1
env:
- name: APP_VERSION
value: "1.5.0"
- name: LOG_LEVEL
value: "2"
ingress:
enabled: true
className: "nginx"
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
nginx.ingress.kubernetes.io/backend-protocol: HTTP
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
hosts:
- host: makai.srv.oceanbox.io
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- makai.srv.oceanbox.io
secretName: makai-tls
+27
View File
@@ -0,0 +1,27 @@
replicaCount: 1
image:
tag: ""
env:
- name: APP_VERSION
value: "0.0.0-staging"
- name: LOG_LEVEL
value: "1"
ingress:
enabled: true
className: "nginx"
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
nginx.ingress.kubernetes.io/backend-protocol: HTTP
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
hosts:
- host: makai.dev.oceanbox.io
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- makai.dev.oceanbox.io
secretName: staging-makai-tls