From 0e0fc04fa5d2ec1f03827fe28d8505d54a1e1696 Mon Sep 17 00:00:00 2001 From: Khwezi Date: Thu, 16 Apr 2026 08:51:13 +0200 Subject: [PATCH] Refactored wandbox template --- kubernetes-templates/wandbox.yml | 74 +++----------------------------- 1 file changed, 6 insertions(+), 68 deletions(-) diff --git a/kubernetes-templates/wandbox.yml b/kubernetes-templates/wandbox.yml index 1917a1c..d3b4b37 100644 --- a/kubernetes-templates/wandbox.yml +++ b/kubernetes-templates/wandbox.yml @@ -10,37 +10,14 @@ metadata: name: wandbox-sa namespace: wandbox --- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: wandbox-role - namespace: wandbox -rules: -- apiGroups: [""] - resources: ["pods", "services", "endpoints", "persistentvolumeclaims", "configmaps", "secrets"] - verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: wandbox-rolebinding - namespace: wandbox -subjects: -- kind: ServiceAccount - name: wandbox-sa -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: wandbox-role ---- apiVersion: v1 kind: ConfigMap metadata: name: wandbox-config namespace: wandbox data: - wandbox.domain: "wandbox.apps.mngoma.lab" - wandbox.rooturl: "https://wandbox.apps.mngoma.lab" + wandbox.domain: "wandbox.khongisa.co.za" + wandbox.rooturl: "https://wandbox.khongisa.co.za" wandbox.port: "5000" --- apiVersion: v1 @@ -53,30 +30,6 @@ data: api.key: cG1HeW9xUlBCYW1qdndRV2FRbzZWME9CdmJLS3BFS1RhWlF0bDRndUhMSGpYQlZwc0Y3dnJPZXhXMTNIRWFDRg== --- apiVersion: v1 -kind: PersistentVolume -metadata: - name: wandbox-pv - labels: - type: local -spec: - capacity: - storage: 5Gi - accessModes: - - ReadWriteOnce - storageClassName: local-pvs - local: - path: /home/ansible/k3s/makhiwane/wandbox - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/hostname - operator: In - values: - - lead - persistentVolumeReclaimPolicy: Retain ---- -apiVersion: v1 kind: PersistentVolumeClaim metadata: name: wandbox-pvc @@ -84,7 +37,7 @@ metadata: spec: accessModes: - ReadWriteOnce - storageClassName: local-pvs + storageClassName: nfs-storage resources: requests: storage: 5Gi @@ -161,21 +114,6 @@ spec: protocol: TCP port: 80 targetPort: 5000 - type: ClusterIP ---- -apiVersion: traefik.io/v1alpha1 -kind: IngressRoute -metadata: - name: wandbox-web - namespace: wandbox -spec: - entryPoints: - - websecure - routes: - - match: Host(`wandbox.apps.mngoma.lab`) - kind: Rule - services: - - name: wandbox-service - port: 80 - scheme: http - tls: {} + nodePort: 31003 + type: NodePort + -- 2.47.3