Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions contexts/colima/blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ kustomize:
path: policy/resources
dependsOn:
- policy-base
- name: csi
path: csi
dependsOn:
- policy-resources
components:
- openebs
- openebs/dynamic-localpv
- name: lb-base
path: lb/base
dependsOn:
Expand Down
3 changes: 3 additions & 0 deletions contexts/colima/terraform/cluster/talos.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ controlplanes = [{
node = "10.5.0.2"
}]

// A YAML string of worker config patches to apply
worker_config_patches = "\"machine\":\n \"kubelet\":\n \"extraMounts\":\n - \"destination\": \"/var/local\"\n \"options\":\n - \"rbind\"\n - \"rw\"\n \"source\": \"/var/local\"\n \"type\": \"bind\""

// Machine config details for workers
workers = [{
endpoint = "10.5.0.11:50000"
Expand Down
7 changes: 7 additions & 0 deletions contexts/docker-desktop/blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ kustomize:
path: policy/resources
dependsOn:
- policy-base
- name: csi
path: csi
dependsOn:
- policy-resources
components:
- openebs
- openebs/dynamic-localpv
- name: ingress-base
path: ingress/base
dependsOn:
Expand Down
3 changes: 3 additions & 0 deletions contexts/docker-desktop/terraform/cluster/talos.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ controlplanes = [{
node = "127.0.0.1"
}]

// A YAML string of worker config patches to apply
worker_config_patches = "\"machine\":\n \"kubelet\":\n \"extraMounts\":\n - \"destination\": \"/var/local\"\n \"options\":\n - \"rbind\"\n - \"rw\"\n \"source\": \"/var/local\"\n \"type\": \"bind\""

// Machine config details for workers
workers = [{
endpoint = "127.0.0.1:50001"
Expand Down
2 changes: 2 additions & 0 deletions kustomize/csi/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- namespace.yaml
9 changes: 9 additions & 0 deletions kustomize/csi/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: system-csi
labels:
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
6 changes: 6 additions & 0 deletions kustomize/csi/openebs/dynamic-localpv/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patches:
- path: patches/helm-release.yaml
resources:
- storageclass.yaml
12 changes: 12 additions & 0 deletions kustomize/csi/openebs/dynamic-localpv/patches/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: openebs
namespace: system-csi
spec:
values:
localpv-provisioner:
localpv:
enabled: true
basePath: ${LOCAL_VOLUME_PATH}
31 changes: 31 additions & 0 deletions kustomize/csi/openebs/dynamic-localpv/storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local
annotations:
openebs.io/cas-type: local
cas.openebs.io/config: |
- name: StorageType
value: hostpath
- name: BasePath
value: ${LOCAL_VOLUME_PATH}
provisioner: openebs.io/local
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: single
annotations:
storageclass.kubernetes.io/is-default-class: "true"
openebs.io/cas-type: local
cas.openebs.io/config: |
- name: StorageType
value: hostpath
- name: BasePath
value: ${LOCAL_VOLUME_PATH}
provisioner: openebs.io/local
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
42 changes: 42 additions & 0 deletions kustomize/csi/openebs/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: openebs
namespace: system-csi
spec:
interval: 5m
timeout: 5m
chart:
spec:
chart: openebs
# renovate: datasource=helm depName=openebs package=openebs helmRepo=https://openebs.github.io/openebs
version: 4.1.1
sourceRef:
kind: HelmRepository
name: openebs
namespace: system-gitops
values:
localpv-provisioner:
localpv:
enabled: false
hostpathClass:
enabled: false
zfs-localpv:
enabled: false
lvm-localpv:
enabled: false
mayastor:
enabled: false
base:
metrics:
enabled: false
engines:
local:
lvm:
enabled: false
zfs:
enabled: false
replicated:
mayastor:
enabled: false
10 changes: 10 additions & 0 deletions kustomize/csi/openebs/helm-repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: openebs
namespace: system-gitops
spec:
interval: 10m
timeout: 5m
url: https://openebs.github.io/openebs
5 changes: 5 additions & 0 deletions kustomize/csi/openebs/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
resources:
- helm-repository.yaml
- helm-release.yaml
4 changes: 4 additions & 0 deletions windsor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ contexts:
count: 1
cpu: 4
memory: 4
volumes:
- ${WINDSOR_PROJECT_ROOT}/.volumes:/var/local
network:
cidr_block: 10.5.0.0/16
loadbalancer_ips:
Expand Down Expand Up @@ -99,6 +101,8 @@ contexts:
- 8443:30443/tcp
- 9292:30292/tcp
- 8053:30053/udp
volumes:
- ${WINDSOR_PROJECT_ROOT}/.volumes:/var/local
network:
cidr_block: 10.5.0.0/16
dns:
Expand Down
Loading