This commit is contained in:
2025-08-23 17:01:11 +02:00
parent 59b085bb42
commit 5ac0368924
3 changed files with 6 additions and 77 deletions

View File

@@ -15,9 +15,9 @@ data:
sleep 60s
echo "cloning k8aux-apps"
cd /home/coder/project
git clone https://shodan:$SHODAN_PW@gitea.undercloud.cf./undercloud/k8aux-apps.git
git clone http://aux-balancer.undercloud.cf.:3000/undercloud/k8aux-bootstrap.git
git clone http://aux-balancer.undercloud.cf.:3000/undercloud/flatcar.git
#git clone https://shodan:$SHODAN_PW@gitea.undercloud.cf./undercloud/k8aux-apps.git
git clone https://build-node.undercloud.local/Undercloud/k8s-apps.git
#git clone http://aux-balancer.undercloud.cf.:3000/undercloud/flatcar.git
echo "create startup.ran file..."
touch /home/coder/.config/startup.ran
else
@@ -26,35 +26,6 @@ data:
echo "startup done."
#exit 123
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: code-server
# Change "rook-ceph" provisioner prefix to match the operator namespace if needed
provisioner: rook-ceph.cephfs.csi.ceph.com
parameters:
# clusterID is the namespace where the rook cluster is running
# If you change this namespace, also change the namespace below where the secret namespaces are defined
clusterID: rook-ceph
# CephFS filesystem name into which the volume shall be created
fsName: code-server
# Ceph pool into which the volume shall be created
# Required for provisionVolume: "true"
pool: code-server-replicated
# The secrets contain Ceph admin credentials. These are generated automatically by the operator
# in the same namespace as the cluster.
csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-cephfs-provisioner
csi.storage.k8s.io/controller-expand-secret-namespace: rook-ceph
csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node
csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph
reclaimPolicy: Delete
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
@@ -66,7 +37,7 @@ spec:
resources:
requests:
storage: 64M
storageClassName: code-server
storageClassName: cephfs-hyper
---
apiVersion: v1
kind: PersistentVolumeClaim

View File

@@ -1,42 +0,0 @@
apiVersion: ceph.rook.io/v1
kind: CephFilesystem
metadata:
name: code-server
namespace: rook-ceph
spec:
metadataPool:
failureDomain: host
replicated:
size: 3
dataPools:
- name: replicated
failureDomain: host
replicated:
size: 3
preserveFilesystemOnDelete: false
metadataServer:
activeCount: 1
activeStandby: true
placement:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: role
# operator: In
# values:
# - mds-node
tolerations:
- key: node-role.kubernetes.io/storage-node
operator: Exists
effect: NoSchedule
# podAffinity:
# podAntiAffinity:
# topologySpreadConstraints:
#resources:
# limits:
# cpu: "80m"
# memory: "1024Mi"
# requests:
# cpu: "500m"
# memory: "1024Mi"

View File

@@ -10,10 +10,10 @@ metadata:
spec:
tls:
- hosts:
- code-server.undercloud.cf
- code-server.apps.undercloud.dev
secretName: code-server-tls
rules:
- host: code-server.undercloud.cf
- host: code-server.apps.undercloud.dev
http:
paths:
- path: /