Recent Posts
Deploy Prometheus in K3S Cluster Using Terraform Helm Provider and Helm Chart
run these commands:
cd /opt/terraform/k3s/helm/ mkdir prometheus cd /opt/terraform/k3s/helm/prometheus Create providers.tf file:
nano providers.tf Put this in the file:
provider "kubernetes" { # Configuration options config_path = "/etc/rancher/k3s/k3s.yaml" config_context = "default" } provider "helm" { kubernetes { config_path = "/etc/rancher/k3s/k3s.yaml" config_context = "default" } } Create namespaces.tf file:
nano namespaces.tf put this into the file
resource "kubernetes_namespace" "mysql_ns" { metadata { name = "my-prometheus" } } Create file prometheus.tf
nano prometheus.
read more
Deploy MySQL in K3S Cluster Using Terraform Helm Provider and Bitnami Helm Chart
Run these commands
cd /opt/terraform/k3s/helm mkdir mysql cd mysql We can get the BitBami helm Charts here: https://artifacthub.io/ Search for bitnami and locate the MySQL Helm Chart https://artifacthub.io/packages/helm/bitnami/mysql
create file providers.tf with this content:
nano providers.tf put this content into the providers.tf file:
provider "kubernetes" { # Configuration options config_path = "/etc/rancher/k3s/k3s.yaml" config_context = "default" } provider "helm" { kubernetes { config_path = "/etc/rancher/k3s/k3s.yaml" config_context = "default" } } Create file namespaces.
read more
Deploying Trivy in K3S Cluster Using Terraform Helm Provider
Run these commands
sudo su - mkdir /opt/terraform/k3s/helm cd /opt/terraform/k3s/helm mkdir trivy mkdir nginx mkdir grafana mkdir prometheus cd trivy/ create file providers.tf with this content:
nano providers.tf put this content into the providers.tf file:
provider "kubernetes" { # Configuration options config_path = "/etc/rancher/k3s/k3s.yaml" config_context = "default" } provider "helm" { kubernetes { config_path = "/etc/rancher/k3s/k3s.yaml" config_context = "default" } } Create file namespaces.tf
nano namespaces.tf put this in the file:
read more