Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into blackbox-module
Browse files Browse the repository at this point in the history
  • Loading branch information
meyskens committed Aug 8, 2019
2 parents bede329 + 0e22d39 commit 404f536
Show file tree
Hide file tree
Showing 199 changed files with 1,374 additions and 411 deletions.
2 changes: 1 addition & 1 deletion incubator/kafka/Chart.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: Apache Kafka is publish-subscribe messaging rethought as a distributed
commit log.
name: kafka
version: 0.16.2
version: 0.16.3
appVersion: 5.0.1
keywords:
- kafka
Expand Down
2 changes: 1 addition & 1 deletion incubator/kafka/README.md
Expand Up @@ -85,7 +85,7 @@ following configurable parameters:
| `podAnnotations` | Annotation to be added to Kafka pods | `{}` |
| `podLabels` | Labels to be added to Kafka pods | `{}` |
| `envOverrides` | Add additional Environment Variables in the dictionary format | `{ zookeeper.sasl.enabled: "False" }` |
| `configurationOverrides` | `Kafka ` [configuration setting][brokerconfigs] overrides in the dictionary format | `{ offsets.topic.replication.factor: 3 }` |
| `configurationOverrides` | `Kafka ` [configuration setting][brokerconfigs] overrides in the dictionary format | `{ "confluent.support.metrics.enable": false }` |
| `secrets` | Pass any secrets to the kafka pods. Each secret will be passed as an environment variable by default. The secret can also be mounted to a specific path if required. Environment variable names are generated as: `<secretName>_<secretKey>` (All upper case) | `{}` |
| `additionalPorts` | Additional ports to expose on brokers. Useful when the image exposes metrics (like prometheus, etc.) through a javaagent instead of a sidecar | `{}` |
| `readinessProbe.initialDelaySeconds` | Number of seconds before probe is initiated. | `30` |
Expand Down
8 changes: 8 additions & 0 deletions incubator/kafka/templates/_helpers.tpl
Expand Up @@ -52,6 +52,14 @@ else use user-provided URL
{{- end -}}
{{- end -}}

{{/*
Derive offsets.topic.replication.factor in following priority order: configurationOverrides, replicas
*/}}
{{- define "kafka.replication.factor" }}
{{- $replicationFactorOverride := index .Values "configurationOverrides" "offsets.topic.replication.factor" }}
{{- default .Values.replicas $replicationFactorOverride }}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
Expand Down
2 changes: 2 additions & 0 deletions incubator/kafka/templates/statefulset.yaml
Expand Up @@ -158,6 +158,8 @@ spec:
fieldPath: metadata.namespace
- name: KAFKA_HEAP_OPTS
value: {{ .Values.kafkaHeapOptions }}
- name: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR
value: {{ include "kafka.replication.factor" . | quote }}
{{- if not (hasKey .Values.configurationOverrides "zookeeper.connect") }}
- name: KAFKA_ZOOKEEPER_CONNECT
value: {{ include "zookeeper.url" . | quote }}
Expand Down
1 change: 0 additions & 1 deletion incubator/kafka/values.yaml
Expand Up @@ -169,7 +169,6 @@ podLabels: {}
## ref: https://kafka.apache.org/documentation/#brokerconfigs
##
configurationOverrides:
"offsets.topic.replication.factor": 3
"confluent.support.metrics.enable": false # Disables confluent metric submission
# "auto.leader.rebalance.enable": true
# "auto.create.topics.enable": true
Expand Down
2 changes: 1 addition & 1 deletion incubator/mysqlha/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v1
name: mysqlha
version: 0.7.1
version: 0.8.0
appVersion: 5.7.13
description: MySQL cluster with a single master and zero or more slave replicas
keywords:
Expand Down
1 change: 1 addition & 0 deletions incubator/mysqlha/README.md
Expand Up @@ -37,6 +37,7 @@ The following table lists the configurable parameters of the MySQL chart and the
| ----------------------------------------- | ------------------------------------------------- | -------------------------------------- |
| `mysqlImage` | `mysql` image and tag. | `mysql:5.7.13` |
| `xtraBackupImage` | `xtrabackup` image and tag. | `gcr.io/google-samples/xtrabackup:1.0` |
| `imagePullPolicy` | Image pull policy. | `IfNotPresent` |
| `replicaCount` | Number of MySQL replicas | 3 |
| `mysqlRootPassword` | Password for the `root` user. | Randomly generated |
| `mysqlUser` | Username of new user to create. | `nil` |
Expand Down
14 changes: 11 additions & 3 deletions incubator/mysqlha/templates/NOTES.txt
Expand Up @@ -12,8 +12,16 @@ To connect to your database:

2. Run a pod to use as a client:

kubectl run mysql-client --image={{ .Values.mysqlImage }} -it --rm --restart=Never -- /bin/sh
kubectl run mysql-client --image={{ .Values.mysqlImage }} -it --rm --restart='Never' --namespace {{ .Release.Namespace }} -- /bin/sh

2. Open a connection to one of the MySQL pods
3. To connect to Master service (read/write):

mysql -h {{ template "fullname" . }}-0.{{ template "fullname" . }} -p
mysql -h {{ template "fullname" . }}-0.{{ template "fullname" . }} -u root -p

{{- if lt 1 (.Values.mysqlha.replicaCount | int64) }}

4. To connect to slave service (read-only):

mysql -h {{ template "fullname" . }}-readonly -u root -p

{{- end }}
6 changes: 5 additions & 1 deletion incubator/mysqlha/templates/statefulset.yaml
Expand Up @@ -25,6 +25,7 @@ spec:
initContainers:
- name: clone-mysql
image: {{ .Values.xtraBackupImage }}
imagePullPolicy: {{ .Values.imagePullPolicy | quote }}
command:
- bash
- "-c"
Expand Down Expand Up @@ -58,6 +59,7 @@ spec:
mountPath: /etc/mysql/conf.d
- name: init-mysql
image: {{ .Values.mysqlImage }}
imagePullPolicy: {{ .Values.imagePullPolicy | quote }}
command: ["/bin/bash"]
args:
- "-c"
Expand Down Expand Up @@ -89,6 +91,7 @@ spec:
containers:
- name: mysql
image: {{ .Values.mysqlImage }}
imagePullPolicy: {{ .Values.imagePullPolicy | quote }}
env:
- name: MYSQL_DATABASE
value: {{ default "" .Values.mysqlha.mysqlDatabase | quote }}
Expand Down Expand Up @@ -146,6 +149,7 @@ spec:
timeoutSeconds: 1
- name: xtrabackup
image: {{ .Values.xtraBackupImage }}
imagePullPolicy: {{ .Values.imagePullPolicy | quote }}
env:
- name: MYSQL_PWD
valueFrom:
Expand Down Expand Up @@ -226,7 +230,7 @@ spec:
{{- if .Values.metrics.enabled }}
- name: metrics
image: "{{ .Values.metrics.image }}:{{ .Values.metrics.imageTag }}"
imagePullPolicy: {{ .Values.pullPolicy | quote }}
imagePullPolicy: {{ .Values.imagePullPolicy | quote }}
{{- if .Values.mysqlha.mysqlAllowEmptyPassword }}
command: ['sh', '-c', 'DATA_SOURCE_NAME="root@(localhost:3306)/" /bin/mysqld_exporter' ]
{{- else }}
Expand Down
7 changes: 6 additions & 1 deletion incubator/mysqlha/values.yaml
Expand Up @@ -4,6 +4,12 @@
mysqlImage: mysql:5.7.13
xtraBackupImage: gcr.io/google-samples/xtrabackup:1.0

## Specify an imagePullPolicy (Required)
## It's recommended to change this to 'Always' if the image tag is 'latest'
## ref: http://kubernetes.io/docs/user-guide/images/#updating-images
##
imagePullPolicy: IfNotPresent

mysqlha:
replicaCount: 3

Expand Down Expand Up @@ -76,7 +82,6 @@ metrics:
enabled: false
image: prom/mysqld-exporter
imageTag: v0.10.0
imagePullPolicy: IfNotPresent
annotations: {}

livenessProbe:
Expand Down
4 changes: 2 additions & 2 deletions stable/ambassador/Chart.yaml
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: 0.73.0
appVersion: 0.74.1
description: A Helm chart for Datawire Ambassador
name: ambassador
version: 3.1.0
version: 3.2.0
icon: https://www.getambassador.io/images/logo.png
home: https://www.getambassador.io/
sources:
Expand Down
16 changes: 6 additions & 10 deletions stable/ambassador/README.md
Expand Up @@ -62,7 +62,7 @@ The following tables lists the configurable parameters of the Ambassador chart a
| `env` | Any additional environment variables for ambassador pods | `{}` |
| `image.pullPolicy` | Ambassador image pull policy | `IfNotPresent` |
| `image.repository` | Ambassador image | `quay.io/datawire/ambassador` |
| `image.tag` | Ambassador image tag | `0.72.0` |
| `image.tag` | Ambassador image tag | `0.74.1` |
| `imagePullSecrets` | Image pull secrets | `[]` |
| `namespace.name` | Set the `AMBASSADOR_NAMESPACE` environment variable | `metadata.namespace` |
| `scope.singleNamespace` | Set the `AMBASSADOR_SINGLE_NAMESPACE` environment variable and create namespaced RBAC if `rbac.enabled: true` | `false` |
Expand Down Expand Up @@ -93,10 +93,9 @@ The following tables lists the configurable parameters of the Ambassador chart a
| `volumes` | Volumes for the ambassador service | `[]` |
| `pro.enabled` | Installs the Ambassador Pro container as a sidecar to Ambassador | `false` |
| `pro.image.repository` | Ambassador Pro image | `quay.io/datawire/ambassador_pro` |
| `pro.image.tag` | Ambassador Pro image tag | `amb-sidecar-0.4.0` |
| `pro.image.tag` | Ambassador Pro image tag | `amb-sidecar-0.6.0` |
| `pro.ports.auth` | Ambassador Pro authentication port | `8500` |
| `pro.ports.ratelimit` | Ambassador Pro ratelimit port | `8501` |
| `pro.ports.ratelimitDebug` | Debug port for Ambassador Pro ratelimit | `8502` |
| `pro.ports.ratelimit` | Ambassador Pro ratelimit port | `8500` |
| `pro.licenseKey.value` | License key for Ambassador Pro | "" |
| `pro.licenseKey.secret` | Stores the license key as a base64-encoded string in a Kubernetes secret | `false` |
| `autoscaling.enabled` | If true, creates Horizontal Pod Autoscaler | `false` |
Expand All @@ -110,19 +109,16 @@ The following tables lists the configurable parameters of the Ambassador chart a

Ambassador configuration is done through annotations on Kubernetes services or Custom Resource Definitions (CRDs). The `service.annotations` section of the values file contains commented out examples of [Ambassador Module](https://www.getambassador.io/reference/core/ambassador) and a global [TLSContext](https://www.getambassador.io/reference/core/tls) configurations which are typically created in the Ambassador service.

If you intend to use `service.annotations`, remember to include the `getambassador.io/config` annotation key as above,
and remember that you'll have to escape newlines. For example, the annotation above could be defined as

```
service.annotations: { "getambassador.io/config": "---\napiVersion: ambassador/v1\nkind: Module\nname: ambassador\nconfig:\n service_port: 8080" }
```
If you intend to use `service.annotations`, remember to include the `getambassador.io/config` annotation key as above.

### Ambassador Pro

Setting `pro.enabled: true` will install Ambassador Pro as a sidecar to Ambassador with the required CRDs and redis instance.

You must set the `pro.licenseKey.value` to the license key issued to you. Sign up for a [free trial](https://www.getambassador.io/pro/free-trial) of Ambassador Pro or [contact](https://www.getambassador.io/contact) our sales team to obtain a license key.

`pro.ports.auth` and `pro.ports.ratelimit` must be the same value. If changing one, you must change the other.

For most use cases, `pro.image` and `pro.ports` can be left as default.

### Specifying Values
Expand Down
8 changes: 1 addition & 7 deletions stable/ambassador/templates/deployment.yaml
Expand Up @@ -165,19 +165,13 @@ spec:
containerPort: {{ .Values.pro.ports.auth }}
- name: grpc-ratelimit
containerPort: {{ .Values.pro.ports.ratelimit }}
- name: http-debug
containerPort: {{ .Values.pro.ports.ratelimitDebug }}
env:
- name: REDIS_SOCKET_TYPE
value: tcp
- name: REDIS_URL
value: {{ include "ambassador.fullname" . }}-pro-redis:6379
- name: APRO_AUTH_PORT
- name: APRO_HTTP_PORT
value: "{{ .Values.pro.ports.auth }}"
- name: GRPC_PORT
value: "{{ .Values.pro.ports.ratelimit }}"
- name: DEBUG_PORT
value: "{{ .Values.pro.ports.ratelimitDebug }}"
- name: APP_LOG_LEVEL
value: "{{ .Values.pro.logLevel }}"
- name: AMBASSADOR_NAMESPACE
Expand Down
8 changes: 4 additions & 4 deletions stable/ambassador/values.yaml
Expand Up @@ -46,7 +46,7 @@ securityContext:

image:
repository: quay.io/datawire/ambassador
tag: 0.73.0
tag: 0.74.1
pullPolicy: IfNotPresent

nameOverride: ""
Expand Down Expand Up @@ -216,11 +216,11 @@ pro:
enabled: false
image:
repository: quay.io/datawire/ambassador_pro
tag: amb-sidecar-0.5.0
tag: amb-sidecar-0.6.0
# As of Ambassador Pro 0.6.0, both the RateLimitService and AuthService use the same port
ports:
auth: 8500
ratelimit: 8501
ratelimitDebug: 8502
ratelimit: 8500
logLevel: info
licenseKey:
value:
Expand Down
4 changes: 2 additions & 2 deletions stable/anchore-engine/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v1
name: anchore-engine
version: 1.2.0
appVersion: 0.4.1
version: 1.2.1
appVersion: 0.4.2
description: Anchore container analysis and policy evaluation engine service
keywords:
- analysis
Expand Down
2 changes: 1 addition & 1 deletion stable/anchore-engine/values.yaml
Expand Up @@ -66,7 +66,7 @@ ingress:
# Global configuration shared by all anchore-engine services.
anchoreGlobal:
# Image used for all anchore engine deployments (excluding enterprise components).
image: docker.io/anchore/anchore-engine:v0.4.1
image: docker.io/anchore/anchore-engine:v0.4.2
imagePullPolicy: IfNotPresent

# Add additionnal labels to all kubernetes resources
Expand Down
4 changes: 2 additions & 2 deletions stable/cerebro/Chart.yaml
@@ -1,6 +1,6 @@
name: cerebro
version: 1.1.3
appVersion: 0.8.3
version: 1.1.5
appVersion: 0.8.4
apiVersion: v1
description: A Helm chart for Cerebro - a web admin tool that replaces Kopf.
home: https://github.com/lmenezes/cerebro
Expand Down
2 changes: 1 addition & 1 deletion stable/cerebro/README.md
Expand Up @@ -42,7 +42,7 @@ The following table lists the configurable parameters of the cerebro chart and t
|-------------------------------------|-------------------------------------|-------------------------------------------|
| `replicaCount` | Number of replicas | `1` |
| `image.repository` | The image to run | `lmenezes/cerebro` |
| `image.tag` | The image tag to pull | `0.8.3` |
| `image.tag` | The image tag to pull | `0.8.4` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
| `init.image.repository` | The image to run | `docker.io/busybox` |
Expand Down
4 changes: 2 additions & 2 deletions stable/cerebro/templates/deployment.yaml
Expand Up @@ -68,12 +68,12 @@ spec:
{{- end }}
livenessProbe:
httpGet:
path: /
path: {{ .Values.config.basePath }}
port: http
initialDelaySeconds: 120
readinessProbe:
httpGet:
path: /
path: {{ .Values.config.basePath }}
port: http
initialDelaySeconds: 120
resources:
Expand Down
2 changes: 1 addition & 1 deletion stable/cerebro/values.yaml
Expand Up @@ -8,7 +8,7 @@ image:
repository: lmenezes/cerebro
# Note: when updating the version, ensure `config` and the ConfigMap are kept
# in sync with the default configuration of the upstream image
tag: 0.8.3
tag: 0.8.4
pullPolicy: IfNotPresent

init:
Expand Down
2 changes: 1 addition & 1 deletion stable/cluster-autoscaler/Chart.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: Scales worker nodes within autoscaling groups.
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
name: cluster-autoscaler
version: 3.1.0
version: 3.2.0
appVersion: 1.13.1
home: https://github.com/kubernetes/autoscaler
sources:
Expand Down
1 change: 1 addition & 0 deletions stable/cluster-autoscaler/README.md
Expand Up @@ -150,6 +150,7 @@ Parameter | Description | Default
`extraArgs` | additional container arguments | `{}`
`podDisruptionBudget` | Pod disruption budget | `maxUnavailable: 1`
`extraEnv` | additional container environment variables | `{}`
`envFromConfigMap` | additional container environment variables from a configmap | `[]`
`envFromSecret` | additional container environment variables from secret | `nil`
`nodeSelector` | node labels for pod assignment | `{}`
`podAnnotations` | annotations to add to each pod | `{}`
Expand Down
7 changes: 7 additions & 0 deletions stable/cluster-autoscaler/templates/deployment.yaml
Expand Up @@ -142,6 +142,13 @@ spec:
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
{{- range $key, $value := .Values.envFromConfigMap }}
- name: {{ $key }}
valueFrom:
configMapKeyRef:
name: {{ default (include "cluster-autoscaler.fullname" $) $value.name }}
key: {{ required "Must specify key!" $value.key }}
{{- end }}
{{- if .Values.envFromSecret }}
envFrom:
- secretRef:
Expand Down
4 changes: 3 additions & 1 deletion stable/dex/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v1
name: dex
version: 1.5.1
version: 2.0.1
appVersion: 2.17.0
description: CoreOS Dex
keywords:
Expand All @@ -17,3 +17,5 @@ maintainers:
email: shane.starcher@gmail.com
- name: rendhalver
email: pete.brown@powerhrg.com
- name: vi7
email: vi7alya@gmail.com
2 changes: 2 additions & 0 deletions stable/dex/OWNERS
@@ -1,4 +1,6 @@
approvers:
- desaintmartin
- vi7
reviewers:
- desaintmartin
- vi7

0 comments on commit 404f536

Please sign in to comment.