-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* kubeblocks * ignore * KubeBlocks * creation * ignore * info
- Loading branch information
1 parent
b13af11
commit f0cf113
Showing
6 changed files
with
73 additions
and
2 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.vagrant | ||
.vscode | ||
roles/geerlingguy.docker | ||
roles/proxy | ||
roles/bbaassssiiee.* |
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,14 @@ | ||
- name: Create namespace for KubeBlocks add-on | ||
kubernetes.core.k8s: | ||
name: "{{ item.addon_namespace }}" | ||
api_version: v1 | ||
kind: Namespace | ||
state: present | ||
|
||
- name: Install the KubeBlocks add-on | ||
kubernetes.core.helm: | ||
name: "{{ addon_name }}" | ||
chart_ref: "{{ helm_repo_name }}/{{ helm_chart_name }}" | ||
release_namespace: "{{ addon_namespace }}" | ||
create_namespace: true | ||
state: present |
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,10 @@ | ||
- name: Create namespace for KubeBlocks cluster | ||
kubernetes.core.k8s: | ||
name: "{{ item.kb_cluster_ns }}" | ||
api_version: v1 | ||
kind: Namespace | ||
state: present | ||
|
||
- name: Create the KubeBlocks cluster | ||
ansible.builtin.command: | ||
cmd: "kbcli cluster create {{ kb_cluster_type }} {{ kb_cluster_name }} -n {{ kb_cluster_name }}" |
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,21 @@ | ||
--- | ||
# ~/.kube/config should be valid | ||
- name: Manage KubeBlocks | ||
hosts: localhost | ||
become: false | ||
tasks: | ||
- name: Install KubeBlocks | ||
ansible.builtin.include_role: | ||
name: bbaassssiiee.kubeblocks | ||
|
||
- name: Install KubeBlocks add-ons | ||
when: | ||
- kubeblocks_add_ons|length >= 1 | ||
ansible.builtin.include_tasks: addons.yml | ||
loop: "{{ kubeblocks_add_ons }}" | ||
|
||
- name: Install KubeBlock clusters | ||
when: | ||
- kubeblocks_clusters|length >= 1 | ||
ansible.builtin.include_tasks: clusters.yml | ||
loop: "{{ kubeblocks_clusters }}" |
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,4 @@ | ||
--- | ||
roles: | ||
- src: https://github.com/bbaassssiiee/ansible-role-kubeblocks.git | ||
name: bbaassssiiee.kubeblocks |