feat: Create slurm

This commit is contained in:
2025-09-26 16:19:12 +02:00
parent 72b1be2d93
commit 4c6302d66f
7 changed files with 150 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
bases:
- ../envs/environments.yaml.gotmpl
repositories:
- name: slurm
oci: true
url: ghcr.io/slinkyproject/charts
commonLabels:
tier: system
releases:
- name: slurm
namespace: slurm
chart: slurm/slurm
version: 0.4.0
condition: slurm.enabled
values:
- ../values/slurm/values/slurm.yaml.gotmpl
- ../values/slurm/values/slurm-{{ .Environment.Name }}.yaml.gotmpl
postRenderer: ../bin/kustomizer
postRendererArgs:
- ../values/slurm/kustomize/{{ .Environment.Name }}
missingFileHandler: Info
- name: manifests
namespace: slurm
chart: manifests
condition: slurm.enabled
missingFileHandler: Info
values:
- ../values/env.yaml
- ../values/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
- ../values/slurm/env.yaml.gotmpl
- ../values/slurm/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/slurm/manifests
- manifests
+3
View File
@@ -0,0 +1,3 @@
slurm:
enabled: true
autosync: false
+3
View File
@@ -0,0 +1,3 @@
slurm:
enabled: false
autosync: false
@@ -0,0 +1,18 @@
{{- if .Values.clusterConfig.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-api-server
namespace: slinky
spec:
egress:
- toEntities:
- kube-apiserver
toPorts:
- ports:
- port: "6443"
protocol: TCP
endpointSelector:
matchLabels:
app.kubernetes.io/instance: slurm-operator
{{- end }}
@@ -0,0 +1,66 @@
{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: slurm-operator
namespace: argocd
spec:
destination:
namespace: slinky
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: slurm-operator.yaml.gotmpl
project: sys
syncPolicy:
managedNamespaceMetadata:
labels:
component: sys
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
{{- if .Values.slurm_operator.autosync }}
automated:
prune: true
# selfHeal: false
{{- end }}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: slurm-crd
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-1"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: slinky
server: 'https://kubernetes.default.svc'
source:
repoURL: 'ghcr.io/slinkyproject/charts'
targetRevision: '0.4.0'
chart: slurm-operator-crds
project: sys
syncPolicy:
managedNamespaceMetadata:
labels:
component: sys
automated: {}
syncOptions:
- ServerSideApply=true
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
{{- end }}
+16
View File
@@ -0,0 +1,16 @@
accounting:
enabled: true
slurm-exporter:
enabled: false
loginsets:
slinky:
enabled: false
nodesets:
slinky:
replicas: 0
restapi:
replicas: 0