Merge branch 'master' into master
This commit is contained in:
commit
0d29b6d705
14 changed files with 155 additions and 10 deletions
|
@ -2,7 +2,7 @@ apiVersion: v1
|
||||||
appVersion: "1.4.2"
|
appVersion: "1.4.2"
|
||||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 1.7.3
|
version: 1.8.0
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
|
|
@ -101,6 +101,11 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| repoServer.affinity | Assign custom affinity rules to the deployment https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | `{}` |
|
| repoServer.affinity | Assign custom affinity rules to the deployment https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | `{}` |
|
||||||
|
| repoServer.autoscaling.enabled | Enable Horizontal Pod Autoscaler (HPA) for the repo server | `false` |
|
||||||
|
| repoServer.autoscaling.minReplicas | Minimum number of replicas for the repo server HPA | `1` |
|
||||||
|
| repoServer.autoscaling.maxReplicas | Maximum number of replicas for the repo server HPA | `5` |
|
||||||
|
| repoServer.autoscaling.targetCPUUtilizationPercentage | Average CPU utilization percentage for the repo server HPA | `50` |
|
||||||
|
| repoServer.autoscaling.targetMemoryUtilizationPercentage | Average memory utilization percentage for the repo server HPA | `50` |
|
||||||
| repoServer.containerPort | Repo server port | `8081` |
|
| repoServer.containerPort | Repo server port | `8081` |
|
||||||
| repoServer.extraArgs | Additional arguments for the repo server. A list of key:value pairs. | `[]` |
|
| repoServer.extraArgs | Additional arguments for the repo server. A list of key:value pairs. | `[]` |
|
||||||
| repoServer.env | Environment variables for the repo server. | `[]` |
|
| repoServer.env | Environment variables for the repo server. | `[]` |
|
||||||
|
@ -143,10 +148,16 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| server.affinity | Assign custom affinity rules to the deployment https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | `{}` |
|
| server.affinity | Assign custom affinity rules to the deployment https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | `{}` |
|
||||||
|
| server.autoscaling.enabled | Enable Horizontal Pod Autoscaler (HPA) for the server | `false` |
|
||||||
|
| server.autoscaling.minReplicas | Minimum number of replicas for the server HPA | `1` |
|
||||||
|
| server.autoscaling.maxReplicas | Maximum number of replicas for the server HPA | `5` |
|
||||||
|
| server.autoscaling.targetCPUUtilizationPercentage | Average CPU utilization percentage for the server HPA | `50` |
|
||||||
|
| server.autoscaling.targetMemoryUtilizationPercentage | Average memory utilization percentage for the server HPA | `50` |
|
||||||
| server.certificate.additionalHosts | Certificate manager additional hosts | `[]` |
|
| server.certificate.additionalHosts | Certificate manager additional hosts | `[]` |
|
||||||
| server.certificate.domain | Certificate manager domain | `"argocd.example.com"` |
|
| server.certificate.domain | Certificate manager domain | `"argocd.example.com"` |
|
||||||
| server.certificate.enabled | Enables a certificate manager certificate. | `false` |
|
| server.certificate.enabled | Enables a certificate manager certificate. | `false` |
|
||||||
| server.certificate.issuer | Certificate manager issuer | `{}` |
|
| server.certificate.issuer | Certificate manager issuer | `{}` |
|
||||||
|
| server.clusterAdminAccess.enabled | Enable RBAC for local cluster deployments. | `true` |
|
||||||
| server.config | [General Argo CD configuration](https://argoproj.github.io/argo-cd/operator-manual/declarative-setup/#repositories) | See [values.yaml](values.yaml) |
|
| server.config | [General Argo CD configuration](https://argoproj.github.io/argo-cd/operator-manual/declarative-setup/#repositories) | See [values.yaml](values.yaml) |
|
||||||
| server.containerPort | Server container port. | `8080` |
|
| server.containerPort | Server container port. | `8080` |
|
||||||
| server.extraArgs | Additional arguments for the server. A list of key:value pairs. | `[]` |
|
| server.extraArgs | Additional arguments for the server. A list of key:value pairs. | `[]` |
|
||||||
|
|
|
@ -68,7 +68,7 @@ spec:
|
||||||
name: {{ .Values.controller.name }}
|
name: {{ .Values.controller.name }}
|
||||||
{{- if .Values.controller.containerSecurityContext }}
|
{{- if .Values.controller.containerSecurityContext }}
|
||||||
securityContext: {{- toYaml .Values.controller.containerSecurityContext | nindent 10 }}
|
securityContext: {{- toYaml .Values.controller.containerSecurityContext | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.env }}
|
{{- if .Values.controller.env }}
|
||||||
env:
|
env:
|
||||||
{{- toYaml .Values.controller.env | nindent 8 }}
|
{{- toYaml .Values.controller.env | nindent 8 }}
|
||||||
|
|
|
@ -17,7 +17,7 @@ metadata:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.name }}
|
app.kubernetes.io/component: {{ .Values.controller.name }}
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: {{ .Values.controller.name }}
|
- name: {{ .Values.controller.service.portName }}
|
||||||
port: {{ .Values.controller.service.port }}
|
port: {{ .Values.controller.service.port }}
|
||||||
targetPort: {{ .Values.controller.containerPort }}
|
targetPort: {{ .Values.controller.containerPort }}
|
||||||
selector:
|
selector:
|
||||||
|
|
|
@ -16,7 +16,9 @@ spec:
|
||||||
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.repoServer.name }}
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.repoServer.name }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
revisionHistoryLimit: 5
|
revisionHistoryLimit: 5
|
||||||
|
{{- if (ne .Values.repoServer.autoscaling.enabled true) }}
|
||||||
replicas: {{ .Values.repoServer.replicas }}
|
replicas: {{ .Values.repoServer.replicas }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- if .Values.repoServer.podAnnotations }}
|
{{- if .Values.repoServer.podAnnotations }}
|
||||||
|
@ -61,7 +63,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.repoServer.containerSecurityContext }}
|
{{- if .Values.repoServer.containerSecurityContext }}
|
||||||
securityContext: {{- toYaml .Values.repoServer.containerSecurityContext | nindent 10 }}
|
securityContext: {{- toYaml .Values.repoServer.containerSecurityContext | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.repoServer.env }}
|
{{- if .Values.repoServer.env }}
|
||||||
env:
|
env:
|
||||||
{{- toYaml .Values.repoServer.env | nindent 8 }}
|
{{- toYaml .Values.repoServer.env | nindent 8 }}
|
||||||
|
|
33
charts/argo-cd/templates/argocd-repo-server/hpa.yaml
Normal file
33
charts/argo-cd/templates/argocd-repo-server/hpa.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{{- if .Values.repoServer.autoscaling.enabled }}
|
||||||
|
apiVersion: autoscaling/v2beta1
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.repoServer.name }}-hpa
|
||||||
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
app.kubernetes.io/component: {{ .Values.repoServer.name }}
|
||||||
|
name: {{ template "argo-cd.repoServer.fullname" . }}-hpa
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
name: {{ template "argo-cd.repoServer.fullname" . }}
|
||||||
|
minReplicas: {{ .Values.repoServer.autoscaling.minReplicas }}
|
||||||
|
maxReplicas: {{ .Values.repoServer.autoscaling.maxReplicas }}
|
||||||
|
metrics:
|
||||||
|
{{- with .Values.repoServer.autoscaling.targetCPUUtilizationPercentage }}
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: cpu
|
||||||
|
targetAverageUtilization: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.repoServer.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: memory
|
||||||
|
targetAverageUtilization: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
|
@ -17,7 +17,7 @@ metadata:
|
||||||
name: {{ template "argo-cd.repoServer.fullname" . }}
|
name: {{ template "argo-cd.repoServer.fullname" . }}
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: repo-server
|
- name: {{ .Values.repoServer.service.portName }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: {{ .Values.repoServer.service.port }}
|
port: {{ .Values.repoServer.service.port }}
|
||||||
targetPort: repo-server
|
targetPort: repo-server
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.server.clusterAdminAccess.enabled }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -30,4 +31,5 @@ rules:
|
||||||
- pods
|
- pods
|
||||||
- pods/log
|
- pods/log
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
|
{{- end }}
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.server.clusterAdminAccess.enabled }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -16,4 +17,5 @@ roleRef:
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ template "argo-cd.serverServiceAccountName" . }}
|
name: {{ template "argo-cd.serverServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- end }}
|
|
@ -16,7 +16,9 @@ spec:
|
||||||
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.server.name }}
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.server.name }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
revisionHistoryLimit: 5
|
revisionHistoryLimit: 5
|
||||||
|
{{- if (ne .Values.server.autoscaling.enabled true) }}
|
||||||
replicas: {{ .Values.server.replicas }}
|
replicas: {{ .Values.server.replicas }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- if .Values.server.podAnnotations }}
|
{{- if .Values.server.podAnnotations }}
|
||||||
|
@ -69,14 +71,14 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.server.containerSecurityContext }}
|
{{- if .Values.server.containerSecurityContext }}
|
||||||
securityContext: {{- toYaml .Values.server.containerSecurityContext | nindent 10 }}
|
securityContext: {{- toYaml .Values.server.containerSecurityContext | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.server.env }}
|
{{- if .Values.server.env }}
|
||||||
env:
|
env:
|
||||||
{{- toYaml .Values.server.env | nindent 8 }}
|
{{- toYaml .Values.server.env | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if .Values.server.volumeMounts }}
|
{{- if .Values.server.volumeMounts }}
|
||||||
{{- toYaml .Values.server.volumeMounts | nindent 10}}
|
{{- toYaml .Values.server.volumeMounts | nindent 8}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.configs.knownHosts }}
|
{{- if .Values.configs.knownHosts }}
|
||||||
- mountPath: /app/config/ssh
|
- mountPath: /app/config/ssh
|
||||||
|
|
33
charts/argo-cd/templates/argocd-server/hpa.yaml
Normal file
33
charts/argo-cd/templates/argocd-server/hpa.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{{- if .Values.server.autoscaling.enabled }}
|
||||||
|
apiVersion: autoscaling/v2beta1
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.server.name }}-hpa
|
||||||
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
app.kubernetes.io/component: {{ .Values.server.name }}
|
||||||
|
name: {{ template "argo-cd.server.fullname" . }}-hpa
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
name: {{ template "argo-cd.server.fullname" . }}
|
||||||
|
minReplicas: {{ .Values.server.autoscaling.minReplicas }}
|
||||||
|
maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
|
||||||
|
metrics:
|
||||||
|
{{- with .Values.server.autoscaling.targetCPUUtilizationPercentage }}
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: cpu
|
||||||
|
targetAverageUtilization: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: memory
|
||||||
|
targetAverageUtilization: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
|
@ -86,6 +86,7 @@ controller:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
labels: {}
|
labels: {}
|
||||||
port: 8082
|
port: 8082
|
||||||
|
portName: https-controller
|
||||||
|
|
||||||
## Node selectors and tolerations for server scheduling to nodes with taints
|
## Node selectors and tolerations for server scheduling to nodes with taints
|
||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
||||||
|
@ -270,6 +271,13 @@ server:
|
||||||
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
|
autoscaling:
|
||||||
|
enabled: false
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 5
|
||||||
|
targetCPUUtilizationPercentage: 50
|
||||||
|
targetMemoryUtilizationPercentage: 50
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: # argoproj/argocd
|
repository: # argoproj/argocd
|
||||||
tag: # v1.4.2
|
tag: # v1.4.2
|
||||||
|
@ -507,12 +515,24 @@ server:
|
||||||
# orphanedResources: {}
|
# orphanedResources: {}
|
||||||
# roles: []
|
# roles: []
|
||||||
|
|
||||||
|
## Enable Admin ClusterRole resources.
|
||||||
|
## Enable if you would like to grant rights to ArgoCD to deploy to the local kuberentes cluster.
|
||||||
|
clusterAdminAccess:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
## Repo Server
|
## Repo Server
|
||||||
repoServer:
|
repoServer:
|
||||||
name: repo-server
|
name: repo-server
|
||||||
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
|
autoscaling:
|
||||||
|
enabled: false
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 5
|
||||||
|
targetCPUUtilizationPercentage: 50
|
||||||
|
targetMemoryUtilizationPercentage: 50
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: # argoproj/argocd
|
repository: # argoproj/argocd
|
||||||
tag: # v1.4.2
|
tag: # v1.4.2
|
||||||
|
@ -590,6 +610,7 @@ repoServer:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
labels: {}
|
labels: {}
|
||||||
port: 8081
|
port: 8081
|
||||||
|
portName: https-repo-server
|
||||||
|
|
||||||
## Repo server metrics service configuration
|
## Repo server metrics service configuration
|
||||||
metrics:
|
metrics:
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: v1
|
||||||
appVersion: "0.7"
|
appVersion: "0.7"
|
||||||
description: A Helm chart for Argo Rollouts
|
description: A Helm chart for Argo Rollouts
|
||||||
name: argo-rollouts
|
name: argo-rollouts
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
39
charts/argo-rollouts/README.md
Normal file
39
charts/argo-rollouts/README.md
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
Argo Rollouts Chart
|
||||||
|
=============
|
||||||
|
A Helm chart for Argo Rollouts, progressive delivery for Kubernetes.
|
||||||
|
|
||||||
|
Current chart version is `0.1.0`
|
||||||
|
|
||||||
|
Source code can be found [here](https://github.com/argoproj/argo-rollouts)
|
||||||
|
|
||||||
|
## Additional Information
|
||||||
|
This is a **community maintained** chart. This chart installs [argo-rollouts](https://argoproj.github.io/argo-rollouts/), progressive delivery for Kubernetes.
|
||||||
|
|
||||||
|
The default installation is intended to be similar to the provided Argo Rollouts [releases](https://github.com/argoproj/argo-rollouts/releases).
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
- Kubernetes 1.7+
|
||||||
|
|
||||||
|
|
||||||
|
## Installing the Chart
|
||||||
|
|
||||||
|
To install the chart with the release name `my-release`:
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ helm repo add argo https://argoproj.github.io/argo-helm
|
||||||
|
$ helm install --name my-release argo/argo-rollouts
|
||||||
|
```
|
||||||
|
|
||||||
|
## Chart Values
|
||||||
|
|
||||||
|
| Key | Type | Default | Description |
|
||||||
|
|-----|------|---------|-------------|
|
||||||
|
| clusterInstall | bool | `true` | |
|
||||||
|
| controller.component | string | `"rollouts-controller"` | |
|
||||||
|
| controller.image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
|
| controller.image.repository | string | `"argoproj/argo-rollouts"` | |
|
||||||
|
| controller.image.tag | string | `"v0.7.0"` | |
|
||||||
|
| controller.name | string | `"argo-rollouts"` | |
|
||||||
|
| installCRDs | bool | `true` | |
|
||||||
|
| serviceAccount.name | string | `"argo-rollouts"` | |
|
Loading…
Reference in a new issue