Compare commits
2 commits
fb9ca1f9b0
...
2651c3efff
Author | SHA1 | Date | |
---|---|---|---|
2651c3efff | |||
2f17e3f3bd |
6 changed files with 113 additions and 11 deletions
9
kubernetes/apps/openebs-system/kustomization.yaml
Normal file
9
kubernetes/apps/openebs-system/kustomization.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
# Pre Flux-Kustomizations
|
||||
- ./namespace.yaml
|
||||
# Flux-Kustomizations
|
||||
- ./openebs/ks.yaml
|
7
kubernetes/apps/openebs-system/namespace.yaml
Normal file
7
kubernetes/apps/openebs-system/namespace.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: openebs-system
|
||||
annotations:
|
||||
kustomize.toolkit.fluxcd.io/prune: disabled
|
55
kubernetes/apps/openebs-system/openebs/app/helmrelease.yaml
Normal file
55
kubernetes/apps/openebs-system/openebs/app/helmrelease.yaml
Normal file
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: openebs
|
||||
spec:
|
||||
interval: 30m
|
||||
chart:
|
||||
spec:
|
||||
chart: openebs
|
||||
version: 4.1.0
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: openebs
|
||||
namespace: flux-system
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
cleanupOnFail: true
|
||||
remediation:
|
||||
strategy: rollback
|
||||
retries: 3
|
||||
values:
|
||||
localpv-provisioner:
|
||||
localpv:
|
||||
image:
|
||||
registry: quay.io/
|
||||
repository: openebs/provisioner-localpv
|
||||
hostpathClass:
|
||||
enabled: true
|
||||
name: openebs-hostpath
|
||||
isDefaultClass: false
|
||||
basePath: /var/openebs/local
|
||||
openebs-crds:
|
||||
csi:
|
||||
volumeSnapshots:
|
||||
enabled: false
|
||||
keep: false
|
||||
zfs-localpv:
|
||||
enabled: false
|
||||
lvm-localpv:
|
||||
enabled: false
|
||||
mayastor:
|
||||
enabled: false
|
||||
engines:
|
||||
local:
|
||||
lvm:
|
||||
enabled: false
|
||||
zfs:
|
||||
enabled: true
|
||||
replicated:
|
||||
mayastor:
|
||||
enabled: false
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
21
kubernetes/apps/openebs-system/openebs/ks.yaml
Normal file
21
kubernetes/apps/openebs-system/openebs/ks.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: &app openebs
|
||||
namespace: flux-system
|
||||
spec:
|
||||
targetNamespace: openebs-system
|
||||
commonMetadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: *app
|
||||
path: ./kubernetes/apps/openebs-system/openebs/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: theshire
|
||||
wait: false
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
|
@ -72,6 +72,17 @@ nodes:
|
|||
machine:
|
||||
sysctls:
|
||||
vm.nr_hugepages: "1024"
|
||||
- &kubelet_extra_mounts |-
|
||||
machine:
|
||||
kubelet:
|
||||
extraMounts:
|
||||
- destination: /var/openebs/local
|
||||
type: bind
|
||||
source: /var/openebs/local
|
||||
options:
|
||||
- bind
|
||||
- rshared
|
||||
- rw
|
||||
|
||||
- hostname: merry
|
||||
disableSearchDomain: true
|
||||
|
@ -87,6 +98,7 @@ nodes:
|
|||
machine:
|
||||
sysctls:
|
||||
vm.nr_hugepages: "1024"
|
||||
- *kubelet_extra_mounts
|
||||
|
||||
- hostname: rosie
|
||||
disableSearchDomain: true
|
||||
|
@ -102,6 +114,7 @@ nodes:
|
|||
machine:
|
||||
sysctls:
|
||||
vm.nr_hugepages: "1024"
|
||||
- *kubelet_extra_mounts
|
||||
- hostname: gandalf-01
|
||||
disableSearchDomain: true
|
||||
ipAddress: 10.1.1.68
|
||||
|
@ -116,17 +129,8 @@ nodes:
|
|||
machine:
|
||||
sysctls:
|
||||
vm.nr_hugepages: "1024"
|
||||
- &kubelet_extra_mounts |-
|
||||
machine:
|
||||
kubelet:
|
||||
extraMounts:
|
||||
- destination: /var/openebs/local
|
||||
type: bind
|
||||
source: /var/openebs/local
|
||||
options:
|
||||
- bind
|
||||
- rshared
|
||||
- rw
|
||||
- *kubelet_extra_mounts
|
||||
|
||||
- hostname: shadowfax-01
|
||||
disableSearchDomain: true
|
||||
ipAddress: 10.1.1.69
|
||||
|
|
Loading…
Reference in a new issue