change chart location

This commit is contained in:
maximilian.bartz 2025-04-11 12:44:37 +02:00
parent 70c9cc437d
commit 14f83e08a5
5 changed files with 35 additions and 6 deletions

15
repos/helm/ubuntu.yaml Normal file
View file

@ -0,0 +1,15 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/helmrepository_v1.json
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: ubuntu-vm-helm
namespace: ${TENANT_NAMESPACE}-ns
spec:
vmName: ubuntu-helm
namespace: kubevirt-vms
imageURL: "quay.io/containerdisks/ubuntu:22.04"
storageSize: 40Gi
storageClassName: standard
cpu: 2
memory: 4Gi

View file

@ -1,4 +0,0 @@
apiVersion: v2
name: ubuntu-helm
description: Deploy an Unbuntu VirtualMachine using KubeVirt
version: 0.1.0

View file

@ -9,7 +9,7 @@ spec:
interval: 30m
chart:
spec:
chart: ./charts # local path in Git repo
chart: ./repos/helm # local path in Git repo
sourceRef:
kind: GitRepository
name: tenant-repos

View file

@ -1,4 +1,4 @@
vmName: ubuntu-helm
vmName: windows-vm
namespace: kubevirt-vms
imageURL: "quay.io/containerdisks/ubuntu:22.04"
storageSize: 40Gi

18
ubuntu-vm/ks.yaml Normal file
View file

@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app ubuntu-vm
namespace: ${TENANT_NAMESPACE}
spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./ubuntu-vm/ubuntu
prune: true
sourceRef:
kind: GitRepository
name: tenant-repos
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m