service-common

by serge.logvinov

Helm chartv0.3.19App 2.8.32Verified publisher

Simple gateway with TLS auth

About this chart

service-common

Simple gateway with TLS auth

Homepage: https://github.com/sergelogvinov/helm-charts

Source Code

Example:

service:
  type: LoadBalancer

  annotations:
    service.beta.kubernetes.io/aws-load-balancer-type: external
    service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
    service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
    service.beta.kubernetes.io/aws-load-balancer-name: services
    service.beta.kubernetes.io/aws-load-balancer-manage-backend-security-group-rules: "false"

  externalName: services.elb.us-east-2.amazonaws.com
  ports:
    - name: postgres
      port: 5432
      backend: postgres.us-east-1.rds.amazonaws.com:5432

Values

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"haproxy"
image.pullPolicystring"IfNotPresent"
image.tagstring""
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
serviceAccount.createbooltrue
serviceAccount.annotationsobject{}
serviceAccount.namestring""
podAnnotationsobject{}Annotations for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podSecurityContextobject{"fsGroup":99,"fsGroupChangePolicy":"OnRootMismatch"}Pod Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsGroup":99,"runAsNonRoot":true,"runAsUser":99,"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
serviceobject{"externalName":"services","ipFamilies":["IPv4"],"ports":null,"type":"ClusterIP"}Service parameters ref: https://kubernetes.io/docs/concepts/services-networking/service/
resourcesobject{"limits":{"cpu":"100m","memory":"64Mi"},"requests":{"cpu":"50m","memory":"32Mi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
updateStrategyobject{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}Pod deployment update strategy type. ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
nodeSelectorobject{}Node labels for pod assignment. ref: https://kubernetes.io/docs/user-guide/node-selection/
tolerationslist[]Tolerations for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
affinityobject{}Affinity for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity

Deploy service-common with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has service-common on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartservice-common is pinned at v0.3.19 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply