Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log & Monitor
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

[Ingress Nginx/MetalLB] Install Ingress Nginx trên K8s bằng helm

Posted on July 4, 2021March 20, 2023 By nim 3 Comments on [Ingress Nginx/MetalLB] Install Ingress Nginx trên K8s bằng helm

https://kubernetes.github.io/ingress-nginx/deploy/#using-helm

Contents

  • 1) Metallb
  • 2) Ingress Nginx
    • Configure to provide internal or private IP for Service with type LoadBalancer on EKS
    • Create Ingress for any service not inside the k8s cluster

1) Metallb

Hiện tại mình cũng chưa có nhu cầu cài lại Metallb và vẫn đang chạy ở phiện bản 1.12.1
Tin mới là metallb đã có breaking changes in 0.13.x

Cài đặt metallb trước để auto nhận các service LB

kubectl create ns metallb
helm repo add metallb https://metallb.github.io/metallb
helm install metallb metallb/metallb

Phần config trong file value để tạo 1 range IP cho LB

configInline:
  address-pools:
   - name: default
     protocol: layer2
     addresses:
     - 192.168.21.240-192.168.21.250
addresses:
     - 192.168.21.240-192.168.21.250
Đây là range IP mà bạn sẽ cấp cho các ingress có Type LoadBalancer

2) Ingress Nginx

kubectl create ns ingress-nginx
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update

helm install ingress-nginx ingress-nginx/ingress-nginx

Trước khi intall export value.yaml và sửa 1 số chi tiết sau:

CÒn nếu bạn sài argocd thì

Thực hành tạo ingress trên rancher he. tạo bằng cmd thì người ta chỉ đầy rồi.

Mình có 1 web tên là kiali và mình đã tạo service cho nó

ở phần này nói thêm với rancher khi mà bạn tạo ingress mà bạn workload như hình trên hình thì nó sẽ tạo cho bạn 1 service select tới workload của bạn.
Rồi nó nào 1 ingress select vào service mà rancher tạo.
Vì mình đã có service rồi nên ko chơi cách này.

Chờ síu cho nó active
OK nhé

Configure to provide internal or private IP for Service with type LoadBalancer on EKS

apiVersion: v1
kind: Service
metadata:
  name: argocd-server
  namespace: argocd
  labels:
    app.kubernetes.io/component: server
    app.kubernetes.io/instance: argocd
    app.kubernetes.io/name: argocd-server
    app.kubernetes.io/part-of: argocd
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-internal: 'true' #look at
spec:
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 8080
      nodePort: 30009
    - name: https
      protocol: TCP
      port: 443
      targetPort: 8080
      nodePort: 32184
  selector:
    app.kubernetes.io/name: argocd-server
  type: LoadBalancer #look at

Create Ingress for any service not inside the k8s cluster

Kubernetes Ingress to External Service

Ingress, MetalLB

Post navigation

Previous Post: [Jenkins] Hướng dẫn kết nối kết nối Jenkins master và Agent
Next Post: [Command] Hướng dẫn command xoá file cũ theo ngày trong linux

More Related Articles

[ingress-nginx] ingress /contains invalid path Ingress
[GRPC/Ingress-Nginx] Add annotation for ingress-nginx to work GRPC Ingress
[GRPC/Golang] Learning GRPC and Golang through the easy and actual lessons. Golang
[ingress-nginx] Error=”ingress does not contain a valid IngressClass”, After upgrade ingress-nginx(helm 4.x.x, ingress-nginx/controller:v1.1.0) Ingress
[Metallb] Create LoadBalancer Service on K8S (on-premise) so easily Ingress
[Ingress-nginx/GRPC] Let’s practice the load balancing with Ingress-Nginx and GRPC together Ingress

Comments (3) on “[Ingress Nginx/MetalLB] Install Ingress Nginx trên K8s bằng helm”

  1. Pingback: [Harbor] Cài đặt Private Dockerhub – Harbor trên k8s bằng helm – repo Binami – NimTechnology
  2. Pingback: [Rancher/K8s] Cài đặt rancher trên K8s bằng Helm 3 – NimTechnology
  3. Pingback: [Istio-Multi Cluster] Tutorial is very detailed to install Primary-Remote on different networks – NimTechnology

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Prometheus/Grafana] Install Prometheus and Grafana on ubuntu. March 27, 2023
  • [Kong Gateway] WebSocket connection failed March 26, 2023
  • [Nextcloud] Can’t download files to have a size bigger than 2Gi on NextCloud – RaspBerry March 24, 2023
  • [Datadog] Using DataDog to monitor all services on kubernetes March 19, 2023
  • [Metrics Server] Failed to make webhook authorizer request: the server could not find the requested resource March 17, 2023

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
    • NextCloud
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • MetalLB
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2023 NimTechnology.