mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
[bitnami/consul] Add service annotations
This commit is contained in:
@@ -7,6 +7,9 @@ appVersion: 1.3.0
|
||||
description: Highly available and distributed service discovery and key-value store
|
||||
designed with support for the modern data center to make distributed systems and
|
||||
configuration easy.
|
||||
home: https://www.consul.io/
|
||||
sources:
|
||||
- https://github.com/bitnami/consul
|
||||
icon: https://raw.githubusercontent.com/hashicorp/consul/bce3809dfca37b883828c3715b84143dd71c0f85/website/source/assets/images/favicons/android-chrome-512x512.png
|
||||
maintainers:
|
||||
- name: Bitnami
|
||||
|
||||
@@ -80,6 +80,8 @@ The following tables lists the configurable parameters of the Consul chart and t
|
||||
| `antiAffinity` | Consul pod anti-affinity setting | `soft` |
|
||||
| `ui.service.enabled` | Use a service to access Consul Ui | `true` |
|
||||
| `ui.service.type` | Kubernetes Service Type | `ClusterIP` |
|
||||
| `ui.service.annotations` | Annotations for Consul UI service | {} |
|
||||
| `ui.service.loadBalancerIP` | IP if Consul UI service type is `LoadBalancer` | `nil` |
|
||||
| `ui.ingress.enabled` | Enable ingress controller resource | `false` |
|
||||
| `ui.ingress.hosts[0].name` | Hostname to your Consul installation | `consul-ui.local` |
|
||||
| `ui.ingress.hosts[0].path` | Path within the url structure | `/` |
|
||||
|
||||
@@ -9,12 +9,19 @@ metadata:
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
component: ui
|
||||
{{- with .Values.ui.service.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.uiPort }}
|
||||
targetPort: http
|
||||
type: "{{ .Values.ui.service.type }}"
|
||||
{{- if and (eq .Values.ui.service.type "LoadBalancer") .Values.ui.service.loadBalancerIP }}
|
||||
loadBalancerIP: {{ .Values.ui.service.loadBalancerIP }}
|
||||
{{- end }}
|
||||
selector:
|
||||
app: "{{ template "consul.name" . }}"
|
||||
chart: {{ template "consul.chart" . }}
|
||||
|
||||
@@ -103,6 +103,13 @@ ui:
|
||||
service:
|
||||
enabled: true
|
||||
type: "ClusterIP"
|
||||
## Provide any additional annotations which may be required. This can be used to
|
||||
## set the LoadBalancer service type to internal only.
|
||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
|
||||
##
|
||||
annotations:
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
loadBalancerIP:
|
||||
|
||||
## Configure the ingress resource that allows you to access the
|
||||
## Consul user interface. Set up the URL
|
||||
|
||||
Reference in New Issue
Block a user