This Ansible Galaxy Role Removes CloudNativePG Sandbox.
The ansible playbook must be executed under an account that has full privileges.
The only dependencies required for this ansible galaxy role are:
- AWS EKS CLI, Azure CLI, or Google Cloud CLI - Depends directly on the target cloud
- Kubectl
- Ansible
- Python packages: openshift, pyyaml, kubernetes, pyhelm
Installed with commands:
pip install openshift pyyaml kubernetes
pip install pyhelm
kubernetes.core.helm_repository
- Ansible Module - Required for Helm.community.kubernetes.helm
- Ansible Module - Required for Helm.kubernetes.core.k8s
- Ansible Module - Required for Kubernetes.
There are no required variables:
The setup_cloudnativepg_sandbox
role does not have any dependencies on any other roles.
Below is an example of how to include the setup_cloudnativepg_sandbox
role:
---
- hosts: localhost
name: Deploy CloudNativePG-Sandbox Playbook
gather_facts: yes
roles:
- setup_cloudnativepg_sandbox
A previously provisioned Cloud Kubernetes Cluster is required. The steps below will retrieve the credentials and update the local kubeconfig file.
# Update local kubeconfig with Cloud Kubernetes Cluster credentials
$ eksctl get nodegroup --cluster <k8s-cluster-name>
# Update local kubeconfig with Cloud Kubernetes Cluster credentials
$ az aks get-credentials --resource-group <k8s-resource-group> --name <k8s-cluster-name>
# Update local kubeconfig with Cloud Kubernetes Cluster credentials
$ gcloud container clusters get-credentials <k8s-cluster-name> --region <gcloud-region>
Copy the setup_cloudnativepg_sandbox.yml
playbook located in the playbook-examples/cnp
directory into the root of the edb-ansible
directory.
# To Deploy CloudNativePG Sandbox into Kubernetes Cluster
$ ansible-playbook setup_cloudnativepg_sandbox.yml
BSD
Author:
- Doug Ortiz
- DevOps
- edb-devops@enterprisedb www.enterprisedb.com