Skip to content

diepquynh/k8s-api-helm-charts-consul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Helm charts for backend API microservice with Consul

Getting started

  1. Install helm
$ curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
  1. Add HashiCorp Consul repo
$ helm repo add hashicorp https://helm.releases.hashicorp.com
  1. Install consul with Kubernetes Gateway API
  • Consul's values.yaml
# Configure global settings in this section.
global:
  enabled: true
  name: consul
  datacenter: dc1
  # Bootstrap ACLs within Consul. This is highly recommended.
  acls:
    manageSystemACLs: true

# Configure your Consul servers in this section.
server:
  enabled: true
  replicas: 1
  resources:
    requests:
      memory: "200Mi"
      cpu: "100m"
    limits:
      memory: '8Gi'
      cpu: '2'

# Enable and configure the Consul UI.
ui:
  enabled: true
  service:
    type: "LoadBalancer"

# Enable Consul connect pod injection
connectInject:
  default: true
  resources:
    requests:
      memory: "500Mi"
      cpu: "250m"
    limits:
      memory: "500Mi"
      cpu: "250m"
  failurePolicy: "Ignore"
  initContainer:
    resources:
      requests:
        memory: "150Mi"
        cpu: "250m"
      limits:
        memory: "150Mi"
        cpu: 500m
  • Install
$ helm install consul hashicorp/consul --create-namespace --namespace consul -f path/to/consul/values.yaml
  1. Test and try
$ helm install api . --create-namespace --namespace api

About

Helm charts for backend API microservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages