Skip to content
Snippets Groups Projects
Verified Commit 21a9b14f authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Add vaues for teckids-rook-config chart

parent 046f7b98
No related branches found
No related tags found
1 merge request!6Draft: feat: external ceph cluster
...@@ -85,34 +85,12 @@ deploy_rook: ...@@ -85,34 +85,12 @@ deploy_rook:
- helm repo add rook-release https://charts.rook.io/release - helm repo add rook-release https://charts.rook.io/release
- helm repo update - helm repo update
script: script:
- kubectl -n rook-ceph-external create secret generic --type=kubernetes.io/rook rook-ceph-mon
--from-literal=cluster-name=rook-ceph-external
--from-literal=fsid=35f230ce-5684-4625-bd91-cf67fc10818d
--from-literal=admin-secret=$ROOK_EXTERNAL_ADMIN_SECRET
--from-literal=mon-secret=mon-secret
--from-literal=ceph-username=
--from-literal=ceph-secret=
- kubectl -n rook-ceph-external create configmap rook-ceph-mon-endpoints
--from-literal=data=rz-sp-virt-01=91.184.37.197:3300,rz-sp-virt-02=91.184.37.202:3300,rz-sp-virt-04=91.184.37.200:3300
--from-literal=mapping={}
--from-literal=maxMonId=2
- kubectl -n rook-ceph-external create secret generic --type=kubernetes.io/rook rook-csi-rbd-node
--from-literal=userID=csi-rbd-node --from-literal=userKey=
- kubectl -n rook-ceph-external create secret generic --type=kubernetes.io/rook rook-csi-rbd-provisioner
--from-literal=userID=csi-rbd-provisioner
--from-literal=userKey=
- kubectl -n rook-ceph-external create secret generic --type=kubernetes.io/rook rook-csi-cephfs-node
--from-literal=adminID=csi-cephfs-node
--from-literal=adminKey=
- kubectl -n rook-ceph-external create secret generic --type=kubernetes.io/rook rook-csi-cephfs-provisioner
--from-literal=adminID=csi-cephfs-provisioner
--from-literal=adminKey=
- kubectl -n rook-ceph-external create secret generic --type=kubernetes.io/rook rgw-admin-ops-user
--from-literal=accessKey=
--from-literal=secretKey=
- echo helm upgrade --install $CI_ENVIRONMENT_SLUG rook-release/rook-ceph - echo helm upgrade --install $CI_ENVIRONMENT_SLUG rook-release/rook-ceph
--set podAnnotations.'app\.gitlab\.com'/env=$CI_ENVIRONMENT_SLUG --set podAnnotations.'app\.gitlab\.com'/env=$CI_ENVIRONMENT_SLUG
--set podAnnotations.'app\.gitlab\.com'/app=$CI_PROJECT_PATH_SLUG --set podAnnotations.'app\.gitlab\.com'/app=$CI_PROJECT_PATH_SLUG
- echo helm upgrade --install $CI_ENVIRONMENT_SLUG ./custom-charts/teckids-rook-config
--set secrets.mon.admin_secret=$ROOK_EXTERNAL_ADMIN_SECRET
-f values/teckids_rook.yaml
- echo kubectl -n $KUBE_NAMESPACE apply -f resources/rook_object_store.yaml - echo kubectl -n $KUBE_NAMESPACE apply -f resources/rook_object_store.yaml
- echo kubectl -n $KUBE_NAMESPACE apply -f resources/rook_external_cluster.yaml - echo kubectl -n $KUBE_NAMESPACE apply -f resources/rook_external_cluster.yaml
......
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: rook-ceph-external
namespace: rook-ceph-external
spec:
external:
enable: true
crashCollector:
disable: true
apiVersion: ceph.rook.io/v1
kind: CephObjectStore
metadata:
name: external-store
spec:
gateway:
port: 7480
externalRgwEndpoints:
- ip: 91.184.37.197
- ip: 91.184.37.200
- ip: 91.184.37.202
healthCheck:
bucket:
enabled: true
interval: 60s
endpoints:
data: "rz-sp-virt-01=91.184.37.197:3300,rz-sp-virt-02=91.184.37.202:3300,rz-sp-virt-04=91.184.37.200:3300"
mapping: "{}"
maxMonId: "2"
secrets:
mon:
cluster_name: "Teckids-Prod"
fsid: "35f230ce-5684-4625-bd91-cf67fc10818d"
admin_secret: "" # Set by ci
mon_secret: "mon_secret"
ceph_username: ""
ceph_secret: ""
rbd:
node:
userID: "csi_rbd_node"
userKey: ""
provisioner:
userID: "csi_rbd_provisioner"
userKey: ""
cephfs:
node:
adminID: "csi_cephfs_node"
adminKey: ""
provisioner:
adminID: "csi_cephfs_provisioner"
adminKey: ""
ops_user:
accessKey: ""
secretKey: ""
object:
gateway:
port: 7480
externalEndpoints:
- ip: 91.184.37.197
- ip: 91.184.37.202
- ip: 91.184.37.202
healthCheck:
bucket:
enabled: true
interval: 60s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment