- Local Ubuntu Environment k8scluster Deployment Scripts.
- Kubernetes Cluster Dashboard
- Kubernetes Cluster Monitoring System
- Grafana URLs
- Prometheus URLs
- AlertManager URLs
# cd into the local repository directory after git clone
cd local_repo_dir
# python3 main.py -h
usage: main.py [-h] [--nginx_proxy NGINX_PROXY] [--monitoring MONITORING] [--minikube MINIKUBE] [--cluster CLUSTER] [--ansible ANSIBLE]
The K8S Cluster Deployment Command Line Tools
options:
-h, --help show this help message and exit
--nginx_proxy NGINX_PROXY
The Nginx Proxy Operation: start/stop
--monitoring MONITORING
The kubernetes Cluster Monitoring System Operations: install/uninstall
--minikube MINIKUBE The kubernetes Cluster Minikube Operations: install/uninstall/start/stop
--cluster CLUSTER The kubernetes Cluster Deployments Operations: install/uninstall
--ansible ANSIBLE The Ansible Deployments for Kubernetes Cluster: install/uninstall
- Install Prerequisites.(
yq, kubectl, skopeo, helm, docker and kind
) - Install Kubernetes Cluster (by using
minikube
in local environment). - Install the Monitoring System (
Prometheus and Grafana
) of the Kubernetes Cluster.
- Uninstall Prerequisites.(
yq, kubectl, skopeo, helm, docker and kind
) - Uninstall Kubernetes Cluster (by using
minikube
in local environment). - Uninstall the Monitoring System (
Prometheus and Grafana
) of the Kubernetes Cluster.
-
prerequisites_install.py
- Scripts for install Kubernetes cluster prerequisites, such as
yq
,kubectl
,skopeo
,helm
,docker
andkind
.
- Scripts for install Kubernetes cluster prerequisites, such as
-
prerequisites_uninstall.py
- Scripts for uninstall Kubernetes cluster prerequisites, such as
yq
,kubectl
,skopeo
,helm
,docker
andkind
.
- Scripts for uninstall Kubernetes cluster prerequisites, such as
-
minikube_install.py
- Using the minikube as the default kubernetes in local ubuntu environment. Installing the minikube kubernetes service, and config cluster dashboard.
-
minikube_uninstall.py
- Uninstallation for minikube kubernetes service
-
minikube_start.py
- Starting the minikube kubernetes service
-
monitoring_install.py
- Installing the
kube-prometheus
, which includesprometheus
,grafana
, andalertmanager
, as the monitoring system of the kubernetes cluster
- Installing the
-
monitoring_uninstall.py
- Uninstalling the
kube-prometheus
, which is the monitoring system of the kubernetes cluster.
- Uninstalling the
-
ansible_install.py
- Installing the
Ansible
, which is the automation tools for further kubernetes cluster deployments.
- Installing the
-
ansible_install.py
- Uninstalling the
Ansible
.
- Uninstalling the
-
utils_tools.py
- Python functions for execute linux commands, and templates the configuration files from jinja2 files
-
constants.py
- Constants values definition, such as file path and so on.