فهرست منبع

Algunos cambios

Celestino Rey 8 ماه پیش
والد
کامیت
7c30e7dfb3
7فایلهای تغییر یافته به همراه15 افزوده شده و 18 حذف شده
  1. 0 6
      02-anadir-a-bashrc.sh
  2. 0 4
      03-instalar-server.sh
  3. 1 1
      07-instala-rancher.sh
  4. 1 1
      rook/README.md
  5. 8 0
      rook/borraNS.sh
  6. 0 6
      rook/common.yaml
  7. 5 0
      rook/namespace.yaml

+ 0 - 6
02-anadir-a-bashrc.sh

@@ -1,6 +0,0 @@
-export no_proxy=localhost,127.0.0.0/8,10.34.7.112,10.34.7.113,10.34.7.114
-export NO_PROXY=localhost,127.0.0.0/8,10.34.7.112,10.34.7.113,10.34.7.114
-export HTTP_PROXY=http://139.16.225.135:81
-export HTTPS_PROXY=http://139.16.225.135:81
-export https_proxy=http://139.16.225.135:81
-export http_proxy=http://139.16.225.135:81

+ 0 - 4
03-instalar-server.sh

@@ -1,9 +1,5 @@
 curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=server sh -
 
-echo "HTTP_PROXY=http://139.16.225.135:81/" > /etc/default/rke2-server
-echo "HTTPS_PROXY=http://139.16.225.135:81/" >> /etc/default/rke2-server
-echo "NO_PROXY=localhost,127.0.0.1" >> /etc/default/rke2-server
-
 # start and enable for restarts -
 systemctl enable rke2-server.service
 systemctl start rke2-server.service

+ 1 - 1
07-instala-rancher.sh

@@ -1,2 +1,2 @@
 # helm install rancher
- helm upgrade -i rancher rancher-latest/rancher --create-namespace --namespace cattle-system --set hostname=sramadrke01v.rancher.lab --set bootstrapPassword=bootStrapAllTheThings --set replicas=1
+ helm upgrade -i rancher rancher-latest/rancher --create-namespace --namespace cattle-system --set hostname=rancher.reymota.lab --set bootstrapPassword=bootStrapAllTheThings --set replicas=1

+ 1 - 1
rook/README.md

@@ -1,6 +1,6 @@
 # Instalación de rook-ceph
 
-    kubectl create -f crds.yaml -f common.yaml -f operator.yaml 
+    kubectl create -f crds.yaml -f namespace.yaml -f common.yaml -f operator.yaml 
 
 Cuando esté el pod en Running
 

+ 8 - 0
rook/borraNS.sh

@@ -0,0 +1,8 @@
+# Source - https://stackoverflow.com/a
+# Posted by teoincontatto
+# Retrieved 2025-12-11, License - CC BY-SA 4.0
+
+kubectl get namespace "rook-ceph" -o json \
+  | tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
+  | kubectl replace --raw /api/v1/namespaces/rook-ceph/finalize -f -
+

+ 0 - 6
rook/common.yaml

@@ -5,12 +5,6 @@
 # "rook-ceph" namespace.
 ####################################################################################################
 
-# Namespace where the operator and other rook resources are created
-apiVersion: v1
-kind: Namespace
-metadata:
-  name: rook-ceph # namespace:cluster
----
 kind: ClusterRole
 apiVersion: rbac.authorization.k8s.io/v1
 metadata:

+ 5 - 0
rook/namespace.yaml

@@ -0,0 +1,5 @@
+# Namespace where the operator and other rook resources are created
+apiVersion: v1
+kind: Namespace
+metadata:
+  name: rook-ceph # namespace:cluster