Compare commits

..

3 Commits

Author SHA1 Message Date
Stephan
7f01d91432 [oauth2-proxy] Add support for topologySpreadConstraints (#496)
Signed-off-by: Stephan Austermühle <au@hcsd.de>
2021-01-14 15:57:07 -05:00
CuBiC
36dd871e05 fix!: bumb version for previous breaking changes (#495) 2021-01-13 18:27:45 +01:00
Ingvarr Zhmakin
d7040bcd89 [zigbee2mqtt] Safer default values, improved configuration (#494)
Signed-off-by: Ingvarr Zhmakin
2021-01-13 16:17:30 +01:00
6 changed files with 76 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 4.1.0
version: 4.2.0
apiVersion: v1
appVersion: 5.1.0
home: https://oauth2-proxy.github.io/oauth2-proxy/

View File

@@ -119,6 +119,10 @@ Parameter | Description | Default
`serviceAccount.name` | the service account name | ``
`serviceAccount.annotations` | (optional) annotations for the service account | `{}`
`tolerations` | list of node taints to tolerate | `[]`
`topologySpreadConstraints.enabled` | enable Kubernetes [topologySpreadConstraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/) | `false`
`topologySpreadConstraints.maxSkew` | the degree to which Pods may be unevenly distributed | `1`
`topologySpreadConstraints.topologyKey` | the key of node labels | `topology.kubernetes.io/zone`
`topologySpreadConstraints.whenUnsatisfiable` | how to deal with a Pod if it doesn't satisfy the spread constraint (`DoNotSchedule`, `ScheduleAnyway`) | `DoNotSchedule`
`securityContext.enabled` | enable Kubernetes security context on container | `false`
`securityContext.runAsNonRoot` | make sure that the container runs as a non-root user | `true`
`proxyVarsAsSecrets` | choose between environment values or secrets for setting up OAUTH2_PROXY variables. When set to false, remember to add the variables OAUTH2_PROXY_CLIENT_ID, OAUTH2_PROXY_CLIENT_SECRET, OAUTH2_PROXY_COOKIE_SECRET in extraEnv | `true`

View File

@@ -208,3 +208,15 @@ spec:
{{- end }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if .Values.topologySpreadConstraints.enabled }}
topologySpreadConstraints:
- labelSelector:
matchLabels:
app: {{ template "oauth2-proxy.name" . }}
release: "{{ .Release.Name }}"
maxSkew: {{ .Values.topologySpreadConstraints.maxSkew }}
topologyKey: {{ .Values.topologySpreadConstraints.topologyKey }}
whenUnsatisfiable: {{ .Values.topologySpreadConstraints.whenUnsatisfiable }}
{{- end }}
{{- end }}

View File

@@ -186,3 +186,13 @@ htpasswdFile:
# example:
# entries:
# - testuser:{SHA}EWhzdhgoYJWy0z2gyzhRYlN9DSiv
## Configure Pod Topology Spread Constraints
## See https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
## Requires Kubernetes >= v1.16
topologySpreadConstraints:
enabled: false
maxSkew: 1
# See https://kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule

View File

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.17.0
description: Bridges events and allows you to control your Zigbee devices via MQTT
name: zigbee2mqtt
version: 4.2.1
version: 5.0.0
keywords:
- zigbee
- mqtt

View File

@@ -1,4 +1,6 @@
# Default values for zigbee2mqtt.
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/charts/tree/master/charts/common
image:
repository: koenkk/zigbee2mqtt
@@ -15,8 +17,9 @@ service:
port:
port: 8080
securityContext:
privileged: true
# Privileged may be required if USB controller is accessed directly through the host machine
# securityContext:
# privileged: true
persistence:
data:
@@ -37,15 +40,15 @@ persistence:
# existingClaim: ""
# Path to your zigbee device in the container
additionalVolumeMounts:
- name: usb
mountPath: /dev/ttyACM0
additionalVolumeMounts: []
# - name: usb
# mountPath: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2400981-if00
# Path to your zigbee device on the host
additionalVolumes:
- name: usb
hostPath:
path: /dev/ttyACM0
additionalVolumes: []
# - name: usb
# hostPath:
# path: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2400981-if00
# affinity:
# nodeAffinity:
@@ -65,6 +68,8 @@ config:
homeassistant: false
# allow new devices to join
# WARNING: Disable this after all devices have been paired! (default: false)
# Note: this will be controllable in the UI
permit_join: true
# MQTT settings
@@ -76,16 +81,49 @@ config:
# MQTT server authentication, uncomment if required:
# user: my_user
# password: my_password
# client_id: my_id
# Alternatively, credentials may be put into a separate file, managed through a secret:
# password: '!secret password'
# Optional: Include device information to mqtt messages (default: false)
include_device_information: true
# USB / Serial settings
serial:
# Location of your zigbee device
port: /dev/ttyACM0
# port: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2400981-if00
# Optional: adapter type, not needed unless you are experiencing problems (options: zstack, deconz)
# adapter: deconz
advanced:
network_key: GENERATE
log_output:
- console
log_level: info
# Optional: ZigBee channel, changing requires re-pairing of all devices. (Note: use a ZLL channel: 11, 15, 20, or 25 to avoid Problems)
# default: 11
# channel: 11
# Optional: Baudrate for serial port (default: 115200 for Z-Stack, 38400 for Deconz)
# baudrate: 38400
# Optional: RTS / CTS Hardware Flow Control for serial port (default: false)
# rtscts: true
# Optional: Add a last_seen attribute to MQTT messages, contains date/time of last Zigbee message
# possible values are: disable (default), ISO_8601, ISO_8601_local, epoch (default: disable)
last_seen: 'ISO_8601'
homeassistant_discovery_topic: 'homeassistant'
homeassistant_status_topic: 'homeassistant/status'
# Optional: Enables report feature (see information -> report for more details) (default: false)
# report: true
# Optional: Add an elapsed attribute to MQTT messages, contains milliseconds since the previous msg (default: false)
# elapsed: true
# Both of these need to be enabled for the webui
frontend: