feat(argo-cd): Argo CD 1.8.1

Signed-off-by: junnplus <junnplus@gmail.com>
This commit is contained in:
junnplus 2020-12-14 14:32:51 +08:00
parent 182ef88c67
commit 263550488f
14 changed files with 78 additions and 34 deletions

View file

@ -1,2 +1,3 @@
chart-repos:
- argo=https://argoproj.github.io/argo-helm
- dandydeveloper=https://dandydeveloper.github.io/charts

View file

@ -1,5 +1,5 @@
apiVersion: v1
appVersion: 1.7.6
appVersion: 1.8.1
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 2.11.0

View file

@ -1,7 +1,6 @@
apiVersion: v1
appVersion: 5.0.6
description: Highly available Kubernetes implementation of Redis
engine: gotpl
home: http://redis.io/
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png
keywords:
@ -18,4 +17,4 @@ sources:
- https://redis.io/download
- https://github.com/scality/Zenko/tree/development/1.0/kubernetes/zenko/charts/redis-ha
- https://github.com/oliver006/redis_exporter
version: 4.4.2
version: 4.5.3

View file

@ -1,6 +0,0 @@
approvers:
- ssalaues
- dandydeveloper
reviewers:
- ssalaues
- dandydeveloper

View file

@ -5,7 +5,8 @@
## TL;DR;
```bash
$ helm install stable/redis-ha
$ helm repo add dandydev https://dandydeveloper.github.io/charts
$ helm install dandydev/redis-ha
```
By default this chart install 3 pods total:
@ -34,7 +35,8 @@ Starting from version `4.x` HAProxy sidecar prometheus-exporter removed and repl
To install the chart
```bash
$ helm install stable/redis-ha
$ helm repo add dandydev https://dandydeveloper.github.io/charts
$ helm install dandydev/redis-ha
```
The command deploys Redis on the Kubernetes cluster in the default configuration. By default this chart install one master pod containing redis master container and sentinel container along with 2 redis slave pods each containing their own sentinel sidecars. The [configuration](#configuration) section lists the parameters that can be configured during installation.
@ -93,6 +95,7 @@ The following table lists the configurable parameters of the Redis chart and the
| `exporter.image` | Exporter image | `oliver006/redis_exporter` |
| `exporter.tag` | Exporter tag | `v0.31.0` |
| `exporter.port` | Exporter port | `9121` |
| `exporter.address` | Redis instance Hostname/Address Exists to circumvent some issues with issues in IPv6 hostname resolution | `localhost` |
| `exporter.annotations` | Prometheus scrape annotations | `{prometheus.io/path: /metrics, prometheus.io/port: "9121", prometheus.io/scrape: "true"}` |
| `exporter.extraArgs` | Additional args for the exporter | `{}` |
| `exporter.script` | A custom custom Lua script that will be mounted to exporter for collection of custom metrics. Creates a ConfigMap and sets env var `REDIS_EXPORTER_SCRIPT`. | |
@ -156,10 +159,11 @@ The following table lists the configurable parameters of the Redis chart and the
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```bash
$ helm repo add dandydev https://dandydeveloper.github.io/charts
$ helm install \
--set image=redis \
--set tag=5.0.5-alpine \
stable/redis-ha
dandydev/redis-ha
```
The above command sets the Redis server within `default` namespace.
@ -167,7 +171,7 @@ The above command sets the Redis server within `default` namespace.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
```bash
$ helm install -f values.yaml stable/redis-ha
$ helm install -f values.yaml dandydev/redis-ha
```
> **Tip**: You can use the default [values.yaml](values.yaml)

View file

@ -163,8 +163,8 @@ spec:
- redis-server
args:
- /data/conf/redis.conf
env:
{{- if .Values.auth }}
env:
- name: AUTH
valueFrom:
secretKeyRef:
@ -228,7 +228,7 @@ spec:
{{- end }}
env:
- name: REDIS_ADDR
value: redis://localhost:{{ .Values.redis.port }}
value: redis://{{ default "localhost" .Values.exporter.address }}:{{ .Values.redis.port }}
{{- if .Values.auth }}
- name: REDIS_PASSWORD
valueFrom:

View file

@ -269,6 +269,11 @@ exporter:
port: 9121
scrapePath: /metrics
# Address/Host for Redis instance. Default: localhost
# Exists to circumvent issues with IPv6 dns resolution that occurs on certain environments
##
address: localhost
# cpu/memory resource limits/requests
resources: {}

View file

@ -133,6 +133,8 @@ spec:
directory:
description: Directory holds path/directory specific options
properties:
exclude:
type: string
jsonnet:
description: ApplicationSourceJsonnet holds jsonnet specific options
properties:
@ -250,6 +252,11 @@ spec:
kustomize:
description: Kustomize holds kustomize specific options
properties:
commonAnnotations:
additionalProperties:
type: string
description: CommonAnnotations adds additional kustomize commonAnnotations
type: object
commonLabels:
additionalProperties:
type: string
@ -394,6 +401,8 @@ spec:
directory:
description: Directory holds path/directory specific options
properties:
exclude:
type: string
jsonnet:
description: ApplicationSourceJsonnet holds jsonnet specific options
properties:
@ -511,6 +520,11 @@ spec:
kustomize:
description: Kustomize holds kustomize specific options
properties:
commonAnnotations:
additionalProperties:
type: string
description: CommonAnnotations adds additional kustomize commonAnnotations
type: object
commonLabels:
additionalProperties:
type: string
@ -671,6 +685,8 @@ spec:
directory:
description: Directory holds path/directory specific options
properties:
exclude:
type: string
jsonnet:
description: ApplicationSourceJsonnet holds jsonnet specific options
properties:
@ -788,6 +804,11 @@ spec:
kustomize:
description: Kustomize holds kustomize specific options
properties:
commonAnnotations:
additionalProperties:
type: string
description: CommonAnnotations adds additional kustomize commonAnnotations
type: object
commonLabels:
additionalProperties:
type: string
@ -951,6 +972,8 @@ spec:
directory:
description: Directory holds path/directory specific options
properties:
exclude:
type: string
jsonnet:
description: ApplicationSourceJsonnet holds jsonnet specific options
properties:
@ -1068,6 +1091,11 @@ spec:
kustomize:
description: Kustomize holds kustomize specific options
properties:
commonAnnotations:
additionalProperties:
type: string
description: CommonAnnotations adds additional kustomize commonAnnotations
type: object
commonLabels:
additionalProperties:
type: string
@ -1209,6 +1237,8 @@ spec:
directory:
description: Directory holds path/directory specific options
properties:
exclude:
type: string
jsonnet:
description: ApplicationSourceJsonnet holds jsonnet specific options
properties:
@ -1326,6 +1356,11 @@ spec:
kustomize:
description: Kustomize holds kustomize specific options
properties:
commonAnnotations:
additionalProperties:
type: string
description: CommonAnnotations adds additional kustomize commonAnnotations
type: object
commonLabels:
additionalProperties:
type: string
@ -1464,6 +1499,8 @@ spec:
directory:
description: Directory holds path/directory specific options
properties:
exclude:
type: string
jsonnet:
description: ApplicationSourceJsonnet holds jsonnet specific options
properties:
@ -1581,6 +1618,11 @@ spec:
kustomize:
description: Kustomize holds kustomize specific options
properties:
commonAnnotations:
additionalProperties:
type: string
description: CommonAnnotations adds additional kustomize commonAnnotations
type: object
commonLabels:
additionalProperties:
type: string

View file

@ -1,6 +1,6 @@
dependencies:
- name: redis-ha
repository: https://kubernetes-charts.storage.googleapis.com
version: 4.4.2
digest: sha256:70fdd035c3aa3b7185882f12a73143c58ab32f04262dda2cf34a2b1a52116d96
generated: "2020-03-29T14:37:59.349371452+01:00"
repository: https://dandydeveloper.github.io/charts
version: 4.5.3
digest: sha256:241a06e1b5c76bf0ca50783cac9422040377023365e295762466a3527a3b2676
generated: "2020-12-14T15:48:25.602957+08:00"

View file

@ -1,5 +1,5 @@
dependencies:
- name: redis-ha
version: 4.4.2
repository: https://kubernetes-charts.storage.googleapis.com
version: 4.5.3
repository: https://dandydeveloper.github.io/charts
condition: redis-ha.enabled

View file

@ -1,6 +1,6 @@
{{- $redisHa := (index .Values "redis-ha") -}}
apiVersion: apps/v1
kind: {{ .Values.controller.enableStatefulSet | ternary "StatefulSet" "Deployment" }}
kind: StatefulSet
metadata:
name: {{ template "argo-cd.controller.fullname" . }}
labels:
@ -16,9 +16,7 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-application-controller
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.controller.enableStatefulSet }}
serviceName: {{ template "argo-cd.controller.fullname" . }}
{{- end }}
revisionHistoryLimit: 5
replicas: {{ .Values.controller.replicas }}
template:

View file

@ -10,7 +10,7 @@ installCRDs: true
global:
image:
repository: argoproj/argocd
tag: v1.7.6
tag: v1.8.1
imagePullPolicy: IfNotPresent
securityContext: {}
# runAsUser: 999
@ -28,7 +28,7 @@ controller:
image:
repository: # argoproj/argocd
tag: # v1.7.6
tag: # v1.8.1
imagePullPolicy: # IfNotPresent
# If changing the number of replicas you must pass the number as ARGOCD_CONTROLLER_REPLICAS as an environment variable
@ -160,7 +160,7 @@ controller:
# resolved for this cloud to continue to maintain state.
# - alert: ArgoAppNotSynced
# expr: |
# argocd_app_sync_status{sync_status!="Synced"} == 1
# argocd_app_info{sync_status!="Synced"} == 1
# for: 12h
# labels:
# severity: warning
@ -267,7 +267,7 @@ redis:
image:
repository: redis
tag: 5.0.8
tag: 5.0.10-alpine
imagePullPolicy: IfNotPresent
containerPort: 6379
@ -337,7 +337,7 @@ redis-ha:
metrics:
enabled: true
image:
tag: 5.0.8-alpine
tag: 5.0.10-alpine
## Server
server:
@ -354,7 +354,7 @@ server:
image:
repository: # argoproj/argocd
tag: # v1.7.6
tag: # v1.8.1
imagePullPolicy: # IfNotPresent
## Additional command line arguments to pass to argocd-server
@ -706,7 +706,7 @@ repoServer:
image:
repository: # argoproj/argocd
tag: # v1.7.6
tag: # v1.8.1
imagePullPolicy: # IfNotPresent
## Additional command line arguments to pass to argocd-repo-server

View file

@ -8,6 +8,7 @@ rm -rf $SRCROOT/output && git clone -b gh-pages git@github.com:argoproj/argo-hel
helm repo add stable https://kubernetes-charts.storage.googleapis.com
helm repo add argoproj https://argoproj.github.io/argo-helm
helm repo add dandydeveloper https://dandydeveloper.github.io/charts
for dir in $(find $SRCROOT/charts -mindepth 1 -maxdepth 1 -type d);
do