From c599f05a1177eef78fd18ce35633abaaa38b32b3 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 25 Mar 2024 11:50:57 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20update:=20repo=20+=20namespace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- charts/vngcloud-controller-manager/Chart.yaml | 2 +- charts/vngcloud-controller-manager/README.md | 12 +++++------- charts/vngcloud-controller-manager/values.yaml | 2 +- charts/vngcloud-ingress-controller/Chart.yaml | 2 +- charts/vngcloud-ingress-controller/README.md | 13 ++++++------- .../templates/{deployment.yaml => statefulset.yaml} | 2 +- 6 files changed, 15 insertions(+), 18 deletions(-) rename charts/vngcloud-ingress-controller/templates/{deployment.yaml => statefulset.yaml} (98%) diff --git a/charts/vngcloud-controller-manager/Chart.yaml b/charts/vngcloud-controller-manager/Chart.yaml index 6163f34..5dc340e 100644 --- a/charts/vngcloud-controller-manager/Chart.yaml +++ b/charts/vngcloud-controller-manager/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 appVersion: v0.1.0 -version: 0.1.0 +version: 0.1.1 icon: https://avatars.githubusercontent.com/u/56472256?s=280&v=4 name: vngcloud-controller-manager description: VngCloud Controller Manager plugin for Kubernetes diff --git a/charts/vngcloud-controller-manager/README.md b/charts/vngcloud-controller-manager/README.md index 35d08bc..dbc4d17 100644 --- a/charts/vngcloud-controller-manager/README.md +++ b/charts/vngcloud-controller-manager/README.md @@ -8,30 +8,28 @@ ![prod-env](https://badgen.net/badge/PRODUCTION/environment/blue?icon=github) -
- -# Introduction +## Introduction The `vngcloud-controller-manager` is a powerful Kubernetes plugin designed to streamline and enhance **network load balancing (L4 load-balancer)** within your clusters. -# Prerequisites +## Prerequisites - Helm 3.0+ - `KUBECONFIG` environment variable pointing to the `.kubeconfig` file with access to your Kubernetes cluster. -# Install `vngcloud-controller-manager` on vContainer Kubernetes clusters +## Install `vngcloud-controller-manager` on vContainer Kubernetes clusters - Following the below steps to install `vngcloud-controller-manager` on your Kubernetes cluster: - **Step 1**: Add the `vks-helm-charts` Helm repository: - ``` + ```bash helm repo add vks-helm-charts https://vngcloud.github.io/vks-helm-charts helm repo update ``` - **Step 2**: Install `vngcloud-controller-manager`: - ``` + ```bash helm install vngcloud-controller-manager vks-helm-charts/vngcloud-controller-manager --replace \ --namespace kube-system \ --set cloudConfig.global.clientID= \ diff --git a/charts/vngcloud-controller-manager/values.yaml b/charts/vngcloud-controller-manager/values.yaml index f6619ff..ec0bc15 100644 --- a/charts/vngcloud-controller-manager/values.yaml +++ b/charts/vngcloud-controller-manager/values.yaml @@ -16,7 +16,7 @@ imagePullSecrets: [] # Image repository name and tag image: - repository: vcr.vngcloud.vn/public/vngcloud-controller-manager + repository: vcr.vngcloud.vn/81-vks-public/vngcloud-controller-manager tag: "v0.1.0" pullPolicy: IfNotPresent diff --git a/charts/vngcloud-ingress-controller/Chart.yaml b/charts/vngcloud-ingress-controller/Chart.yaml index 261c6d9..96129c9 100644 --- a/charts/vngcloud-ingress-controller/Chart.yaml +++ b/charts/vngcloud-ingress-controller/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -version: 0.1.0 +version: 0.1.1 icon: https://avatars.githubusercontent.com/u/56472256?s=280&v=4 name: vngcloud-ingress-controller description: VngCloud Ingress Controller plugin for Kubernetes diff --git a/charts/vngcloud-ingress-controller/README.md b/charts/vngcloud-ingress-controller/README.md index 610f824..d3771c5 100644 --- a/charts/vngcloud-ingress-controller/README.md +++ b/charts/vngcloud-ingress-controller/README.md @@ -8,28 +8,27 @@ ![prod-env](https://badgen.net/badge/PRODUCTION/environment/blue?icon=github) -
- -# Prerequisites +## Prerequisites - Helm 3.0+ - `KUBECONFIG` environment variable pointing to the `.kubeconfig` file with access to your Kubernetes cluster. -# Install `vngcloud-ingress-controller` on vContainer Kubernetes clusters +## Install `vngcloud-ingress-controller` on vContainer Kubernetes clusters - Following the below steps to install `vngcloud-ingress-controller` on your Kubernetes cluster: - **Step 1**: Add the `vks-helm-charts` Helm repository: - ``` + ```bash helm repo add vks-helm-charts https://vngcloud.github.io/vks-helm-charts helm repo update ``` - **Step 2**: Install `vngcloud-ingress-controller`: - ``` + ```bash helm install vngcloud-ingress-controller vks-helm-charts/vngcloud-ingress-controller \ + --namespace kube-system \ --set cloudConfig.global.clientID=__________________________ \ --set cloudConfig.global.clientSecret=__________________________ \ - --set cloudConfig.clusterID=__________________________ + --set cluster.clusterID=__________________________ ``` diff --git a/charts/vngcloud-ingress-controller/templates/deployment.yaml b/charts/vngcloud-ingress-controller/templates/statefulset.yaml similarity index 98% rename from charts/vngcloud-ingress-controller/templates/deployment.yaml rename to charts/vngcloud-ingress-controller/templates/statefulset.yaml index bbbe39d..4247883 100644 --- a/charts/vngcloud-ingress-controller/templates/deployment.yaml +++ b/charts/vngcloud-ingress-controller/templates/statefulset.yaml @@ -2,7 +2,7 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ .Values.ingressControllerName }} - namespace: kube-system + namespace: {{ .Release.Namespace }} labels: k8s-app: {{ .Values.ingressControllerName }} spec: