Переглянути джерело

Añado instrucciones para Rocky Linux y values.xml para nodeport en longhorn-ui

Celestino Rey 6 місяців тому
батько
коміт
0006f5f1ce
5 змінених файлів з 46 додано та 30 видалено
  1. 22 0
      README.md
  2. 0 30
      rook/get-pods
  3. 9 0
      rook/replicapool.yaml
  4. 10 0
      rook/storageclass.yaml
  5. 5 0
      values.yaml

+ 22 - 0
README.md

@@ -93,6 +93,28 @@ Esto hay que ponerlo en el fichero (para curl las que valen son las mayúsculas)
 
     /etc/environment
 
+## Instalación en Rocky Linux
+
+
+ # Rocky instructions
+ # stop the software firewall
+ systemctl stop firewalld
+ systemctl disable firewalld
+
+ # get updates, install nfs, and apply
+ yum install -y nfs-utils cryptsetup iscsi-initiator-utils
+
+ # enable iscsi for Longhorn
+ systemctl start iscsid.service
+ systemctl enable iscsid.service
+
+ # update all the things
+ yum update -y
+
+ # clean up
+ yum clean all
+
+
 ### Instalar RKE2
 
 #### Proxy

+ 0 - 30
rook/get-pods

@@ -1,30 +0,0 @@
-NAME                                                         READY   STATUS      RESTARTS   AGE
-csi-cephfsplugin-4qmbt                                       3/3     Running     0          21h
-csi-cephfsplugin-hvg5l                                       3/3     Running     0          21h
-csi-cephfsplugin-provisioner-7c7c6bf59-ffhdt                 6/6     Running     0          21h
-csi-cephfsplugin-provisioner-7c7c6bf59-hnt9h                 6/6     Running     0          21h
-csi-cephfsplugin-qp2xg                                       3/3     Running     0          21h
-csi-rbdplugin-d7bjx                                          3/3     Running     0          21h
-csi-rbdplugin-mxw52                                          3/3     Running     0          21h
-csi-rbdplugin-provisioner-654995cf9-ftjr9                    6/6     Running     0          21h
-csi-rbdplugin-provisioner-654995cf9-txd2n                    6/6     Running     0          21h
-csi-rbdplugin-xjq72                                          3/3     Running     0          21h
-rook-ceph-crashcollector-sramadrke01v-dev-54479f7864-8jp7r   1/1     Running     0          21h
-rook-ceph-crashcollector-sramadrke02v-dev-58db65444c-9z6tc   1/1     Running     0          21h
-rook-ceph-crashcollector-sramadrke03v-dev-7658cb4c8b-qf2xn   1/1     Running     0          21h
-rook-ceph-exporter-sramadrke01v-dev-67dd8675f-2f5b6          1/1     Running     0          21h
-rook-ceph-exporter-sramadrke02v-dev-758555d548-57d9s         1/1     Running     0          21h
-rook-ceph-exporter-sramadrke03v-dev-7fb4f57c4f-b6qnh         1/1     Running     0          21h
-rook-ceph-mgr-a-7b88459667-5s55f                             3/3     Running     0          21h
-rook-ceph-mgr-b-b99c7cd76-bbgnv                              3/3     Running     0          21h
-rook-ceph-mon-a-7d7cc9b64f-bcm7s                             2/2     Running     0          21h
-rook-ceph-mon-b-794ddfb8c9-jfgvv                             2/2     Running     0          21h
-rook-ceph-mon-c-57648c8d95-pd7dv                             2/2     Running     0          21h
-rook-ceph-operator-84c99b765c-rw7tt                          1/1     Running     0          21h
-rook-ceph-osd-0-564f9fbb76-nnvpr                             2/2     Running     0          21h
-rook-ceph-osd-1-84cd94d6cf-wjsvj                             2/2     Running     0          21h
-rook-ceph-osd-2-7d6676974d-9n6c7                             2/2     Running     0          20h
-rook-ceph-osd-prepare-sramadrke01v-dev-w884k                 0/1     Completed   0          21h
-rook-ceph-osd-prepare-sramadrke02v-dev-n2znr                 0/1     Completed   0          21h
-rook-ceph-osd-prepare-sramadrke03v-dev-fdcfc                 0/1     Completed   0          21h
-rook-ceph-tools-9dfb9b69d-rz7pr                              1/1     Running     0          6h18m

+ 9 - 0
rook/replicapool.yaml

@@ -0,0 +1,9 @@
+apiVersion: ceph.rook.io/v1
+kind: CephBlockPool
+metadata:
+  name: replicapool
+  namespace: rook-ceph
+spec:
+  failureDomain: host
+  replicated:
+    size: 3

+ 10 - 0
rook/storageclass.yaml

@@ -1,3 +1,13 @@
+apiVersion: ceph.rook.io/v1
+kind: CephBlockPool
+metadata:
+  name: replicapool
+  namespace: rook-ceph
+spec:
+  failureDomain: host
+  replicated:
+    size: 3
+---
 allowVolumeExpansion: true
 apiVersion: storage.k8s.io/v1
 kind: StorageClass

+ 5 - 0
values.yaml

@@ -0,0 +1,5 @@
+service:
+  ui:
+    type: NodePort
+    nodePort: 30080   # opcional, si no lo pones Kubernetes asigna uno
+