-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from openinfradev/rook_ceph
Rook ceph 도입
- Loading branch information
Showing
16 changed files
with
66 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
artifacts/ | ||
docker_registry/ | ||
/armada/ | ||
ceph-ansible/ | ||
kubespray/ | ||
charts/ | ||
mirrors/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
kubespray https://github.com/openinfradev/kubespray.git v2.15.1 | ||
#charts/openstack-helm https://github.com/openinfradev/openstack-helm.git master | ||
#charts/openstack-helm-infra https://github.com/openinfradev/openstack-helm-infra.git master | ||
ceph-ansible https://github.com/openinfradev/ceph-ansible.git stable-4.0 | ||
charts/taco-helm-charts https://github.com/openinfradev/helm-charts.git main | ||
charts/argo-helm https://github.com/argoproj/argo-helm.git master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
# from kubespray v2.13.1 | ||
ansible==2.10.0 | ||
# from kubespray v2.15.1 | ||
ansible==2.9.20 | ||
cryptography==2.8 | ||
jinja2==2.11.3 | ||
netaddr==0.7.19 | ||
pbr==5.4.4 | ||
hvac==0.10.0 | ||
jmespath==0.9.5 | ||
ruamel.yaml==0.16.10 | ||
|
||
# for taco | ||
docker | ||
cryptography |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
rook_ceph_cluster_chart_source: "{{ lookup('env', 'HOME') }}/tacoplay/charts/taco-helm-charts/rook-ceph-cluster" | ||
rook_ceph_cluster_mon_replicas: 3 | ||
rook_ceph_cluster_taco_pool_size: 3 | ||
rook_ceph_cluster_taco_pool_require_safe_size: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
- name: create namespace for rook | ||
shell: >- | ||
{{ bin_dir }}/kubectl create namespace rook-ceph | ||
ignore_errors: true | ||
become: false | ||
|
||
- name: add rook release helm repository | ||
shell: >- | ||
{{ bin_dir }}/helm repo add rook-release https://charts.rook.io/release | ||
become: false | ||
|
||
- name: install rook-operator chart | ||
shell: >- | ||
{{ bin_dir }}/helm install --namespace rook-ceph rook-ceph rook-release/rook-ceph | ||
become: false | ||
|
||
- name: sleep for 60 seconds for rook-operator pod to be launched | ||
wait_for: | ||
timeout: 60 | ||
|
||
- name: wait for rook-operator pods become ready | ||
shell: >- | ||
{{ bin_dir }}/kubectl wait --namespace=rook-ceph --for=condition=Ready pods -l app={{ item }} --timeout=600s | ||
become: false | ||
delay: 10 | ||
retries: 3 | ||
with_items: | ||
- rook-ceph-operator | ||
|
||
- name: install rook ceph cluster chart | ||
shell: >- | ||
{{ bin_dir }}/helm install --namespace rook-ceph rook-ceph-cluster {{ rook_ceph_cluster_chart_source }} \ | ||
--set cluster.mon.count={{ rook_ceph_cluster_mon_replicas }} \ | ||
--set block_pools[0].name=taco \ | ||
--set block_pools[0].size={{ rook_ceph_cluster_taco_pool_size }} \ | ||
--set block_pools[0].requireSafeReplicaSize={{ rook_ceph_cluster_taco_pool_require_safe_size }} | ||
become: false | ||
|
||
- name: sleep for 300 seconds for rook ceph cluster to be initialized | ||
wait_for: | ||
timeout: 300 | ||
|
||
- name: wait for rook ceph cluster become ready | ||
shell: >- | ||
{{ bin_dir }}/kubectl wait -n rook-ceph --for=condition=Ready cephcluster rook-ceph --timeout=600s | ||
become: false | ||
delay: 10 | ||
retries: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
pip_repo_url: "" | ||
pkg_repo_url: "" | ||
k8s_binary_repo_url: "" | ||
ceph_repo_url: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.