longhorn-retain -> longhorn, longhorn -> longhorn-no-retain
This commit is contained in:
@@ -69,7 +69,7 @@ spec:
|
|||||||
type: persistentVolumeClaim
|
type: persistentVolumeClaim
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
storageClass: longhorn-retain
|
storageClass: longhorn
|
||||||
retain: true
|
retain: true
|
||||||
globalMounts:
|
globalMounts:
|
||||||
- path: /data
|
- path: /data
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ spec:
|
|||||||
persistence:
|
persistence:
|
||||||
data:
|
data:
|
||||||
type: persistentVolumeClaim
|
type: persistentVolumeClaim
|
||||||
storageClass: longhorn-retain
|
storageClass: longhorn
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 2Gi
|
size: 2Gi
|
||||||
retain: true
|
retain: true
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ spec:
|
|||||||
storage:
|
storage:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
storageClassName: longhorn-retain
|
storageClassName: longhorn
|
||||||
secrets:
|
secrets:
|
||||||
name: zigbee2mqtt-secrets
|
name: zigbee2mqtt-secrets
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ spec:
|
|||||||
mqtt:
|
mqtt:
|
||||||
server: "mqtt://mosquitto.mqtt.svc.cluster.local:1883"
|
server: "mqtt://mosquitto.mqtt.svc.cluster.local:1883"
|
||||||
user: iot
|
user: iot
|
||||||
password: '!secret.yaml mqtt_password'
|
password: "!secret.yaml mqtt_password"
|
||||||
include_device_information: true
|
include_device_information: true
|
||||||
keepalive: 60
|
keepalive: 60
|
||||||
reject_unauthorized: true
|
reject_unauthorized: true
|
||||||
@@ -65,7 +65,7 @@ spec:
|
|||||||
channel: 11
|
channel: 11
|
||||||
pan_id: 7410
|
pan_id: 7410
|
||||||
ext_pan_id: [46, 22, 201, 245, 48, 186, 40, 6]
|
ext_pan_id: [46, 22, 201, 245, 48, 186, 40, 6]
|
||||||
network_key: '!secret.yaml network_key'
|
network_key: "!secret.yaml network_key"
|
||||||
log_level: info
|
log_level: info
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources: []
|
|
||||||
patches:
|
|
||||||
- patch: |
|
|
||||||
apiVersion: storage.k8s.io/v1
|
|
||||||
kind: StorageClass
|
|
||||||
metadata:
|
|
||||||
name: local-path
|
|
||||||
annotations:
|
|
||||||
storageclass.kubernetes.io/is-default-class: "false"
|
|
||||||
target:
|
|
||||||
kind: StorageClass
|
|
||||||
name: local-path
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: storage.k8s.io/v1
|
apiVersion: storage.k8s.io/v1
|
||||||
kind: StorageClass
|
kind: StorageClass
|
||||||
metadata:
|
metadata:
|
||||||
name: longhorn-retain
|
name: longhorn-no-retain
|
||||||
annotations:
|
annotations:
|
||||||
storageclass.kubernetes.io/is-default-class: "true"
|
storageclass.kubernetes.io/is-default-class: "false"
|
||||||
provisioner: driver.longhorn.io
|
provisioner: driver.longhorn.io
|
||||||
reclaimPolicy: Retain
|
reclaimPolicy: Delete
|
||||||
allowVolumeExpansion: true
|
allowVolumeExpansion: true
|
||||||
parameters:
|
parameters:
|
||||||
numberOfReplicas: "3"
|
numberOfReplicas: "3"
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- storage-class-local-path-patch.yaml
|
- storage-class-longhorn-no-retain.yaml
|
||||||
- storage-class-longhorn-retain.yaml
|
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: local-path-defaultclass-patch
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
interval: 10m
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
name: flux-system
|
|
||||||
path: ./clusters/base/infra/storage-class-local-path-patch
|
|
||||||
prune: false # its a local-storage-provisioner object, dont let flux destroy it
|
|
||||||
wait: true
|
|
||||||
+1
-1
@@ -8,6 +8,6 @@ spec:
|
|||||||
sourceRef:
|
sourceRef:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: flux-system
|
name: flux-system
|
||||||
path: ./clusters/base/infra/storage-class-longhorn-retain
|
path: ./clusters/base/infra/storage-class-longhorn-no-retain
|
||||||
prune: true
|
prune: true
|
||||||
wait: true
|
wait: true
|
||||||
Reference in New Issue
Block a user