Compare commits

...

2 Commits

Author SHA1 Message Date
claughinghouse
82bc14973f [syncthing] feat: bump syncthing version and add maintainer (#934)
* feat: bump syncthing version and add maintainer
2021-06-05 15:38:34 +02:00
Angel Nunez Mencias
8d9fbc4980 small fixes (#933) 2021-06-04 06:56:15 +02:00
9 changed files with 77 additions and 43 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.0.0
description: Admision controller to change the default gateway and DNS server of PODs
name: pod-gateway
version: 1.0.0
version: 1.0.1
kubeVersion: ">=1.16.0-0"
keywords:
- pod-gateway

View File

@@ -1,6 +1,6 @@
# pod-gateway
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
Admision controller to change the default gateway and DNS server of PODs
@@ -96,16 +96,6 @@ certificates. It does not install it as dependency to avoid conflicts.
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| DNS | string | `"172.16.0.1"` | IP address of the DNS server within the vxlan tunnel. All mutated PODs will get this as their DNS server. It must match VXLAN_GATEWAY_IP in settings.sh |
| additionalContainers[0].command[0] | string | `"/bin/sh"` | |
| additionalContainers[0].command[1] | string | `"-c"` | |
| additionalContainers[0].command[2] | string | `"while true; do sleep 600 & wait $!; done"` | |
| additionalContainers[0].image | string | `"ghcr.io/k8s-at-home/pod-gateway:dev"` | |
| additionalContainers[0].imagePullPolicy | string | `nil` | |
| additionalContainers[0].name | string | `"test"` | |
| additionalContainers[0].securityContext.capabilities.add[0] | string | `"NET_ADMIN"` | |
| additionalContainers[0].volumeMounts[0].mountPath | string | `"/config"` | |
| additionalContainers[0].volumeMounts[0].name | string | `"config"` | |
| additionalContainers[0].volumeMounts[0].readOnly | bool | `true` | |
| additionalVolumeMounts[0].mountPath | string | `"/config"` | |
| additionalVolumeMounts[0].name | string | `"config"` | |
| additionalVolumeMounts[0].readOnly | bool | `true` | |
@@ -114,7 +104,7 @@ certificates. It does not install it as dependency to avoid conflicts.
| configmap.data."nat.conf" | string | `"# Configure client PODs with static IP addresses\n# and ports exposed through NAT\n# static IPs must be bellow VXLAN_GATEWAY_FIRST_DYNAMIC_IP\n#\n# hostname IP ports(coma separated)\n# Example:\n# transmission 10 tcp:18289,udp:18289\n"` | settings to expose ports, usually through a VPN provider NOTE: if you change it you will need to manually restart all containers using it |
| configmap.data."settings.sh" | string | `"#!/bin/sh\n# hostname of the gateway - it must accept vxlan and DHCP traffic\n# clients get it as env variable\nGATEWAY_NAME=\"${gateway}\"\n# K8S DNS IP address\n# clients get it as env variable\nK8S_DNS_IPS=\"${K8S_DNS_ips}\"\n\n# Vxlan ID to use\nVXLAN_ID=\"42\"\n# VXLAN need an /24 IP range not conflicting with K8S and local IP ranges\nVXLAN_IP_NETWORK=\"172.16.0\"\n# Gateway IP within the VXLAN - client PODs will be routed through it\nVXLAN_GATEWAY_IP=\"${VXLAN_IP_NETWORK}.1\"\n# Keep a range of IPs for static assignment in nat.conf\nVXLAN_GATEWAY_FIRST_DYNAMIC_IP=20\n\n# If using a VPN, interface name created by it\nVPN_INTERFACE=tun0\n# Prevent non VPN traffic to leave the gateway\nVPN_BLOCK_OTHER_TRAFFIC=false\n# Traffic to these IPs will be send through the K8S gateway\nVPN_LOCAL_CIDRS=\"10.0.0.0/8 192.168.0.0/16\"\n\n# DNS queries to these domains will be resolved by K8S DNS instead of\n# the default (typcally the VPN client changes it)\nDNS_LOCAL_CIDRS=\"local\"\n"` | settings for gateway - defaults should usually be good NOTE: if you change it you will need to manually restart all containers using it |
| configmap.enabled | bool | `true` | configmap contains clients and gateway PODs setting |
| configmap.namespaces | list | `["kube-system","vpn"]` | Namespaces to create the configmap to. It must list all namespaces where client PODs get deployed to. The chart namespace is added automatically |
| configmap.namespaces | list | `[]` | Namespaces to create the configmap to. It must list all namespaces where client PODs get deployed to. The chart namespace is added automatically |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/k8s-at-home/pod-gateway"` | |
| image.tag | string | `"v1.1.0"` | |
@@ -167,6 +157,23 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [1.0.1]
#### Added
- N/A
#### Changed
- remove test container - sidecar allows exec as well
- remove hardcoded namespaces for configmaps
#### Removed
- N/A
[1.0.1]: #1.0.1
### [1.0.0]
#### Added

View File

@@ -9,6 +9,23 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [1.0.1]
#### Added
- N/A
#### Changed
- remove test container - sidecar allows exec as well
- remove hardcoded namespaces for configmaps
#### Removed
- N/A
[1.0.1]: #1.0.1
### [1.0.0]
#### Added

View File

@@ -1,5 +1,5 @@
{{- if .Values.configmap.enabled -}}
{{- range $namespace := .Values.configmap.namespaces }}
{{- if .Values.configmap.enabled | default true -}}
{{- range $namespace := append .Values.configmap.namespaces .Release.Namespace }}
---
apiVersion: v1
kind: ConfigMap

View File

@@ -24,9 +24,7 @@ configmap:
# -- Namespaces to create the configmap to.
# It must list all namespaces where client PODs get deployed to.
# The chart namespace is added automatically
namespaces:
- kube-system
- vpn
namespaces: []
data:
# -- settings for gateway - defaults should usually be good
# NOTE: if you change it you will need to manually restart all
@@ -109,26 +107,6 @@ initContainers:
mountPath: /config
readOnly: true
additionalContainers:
- name: "test"
image: "ghcr.io/k8s-at-home/pod-gateway:dev"
imagePullPolicy:
command:
- /bin/sh
- -c
- while true; do
sleep 600 &
wait $!;
done
securityContext:
capabilities:
add:
- NET_ADMIN
volumeMounts:
- name: config
mountPath: /config
readOnly: true
probes:
liveness:
enabled: false
@@ -136,6 +114,7 @@ probes:
enabled: false
startup:
enabled: false
service:
type: ClusterIP
clusterIP: None

View File

@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: 1.16.1
appVersion: 1.17.0
description: Open Source Continuous File Synchronization
name: syncthing
version: 1.3.0
version: 1.3.1
kubeVersion: ">=1.16.0-0"
keywords:
- syncthing
@@ -15,6 +15,7 @@ sources:
maintainers:
- name: FlipEnergy
email: dennis.zhang.nrg@gmail.com
- name: claughinghouse
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com

View File

@@ -1,6 +1,6 @@
# syncthing
![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![AppVersion: 1.16.1](https://img.shields.io/badge/AppVersion-1.16.1-informational?style=flat-square)
![Version: 1.3.1](https://img.shields.io/badge/Version-1.3.1-informational?style=flat-square) ![AppVersion: 1.17.0](https://img.shields.io/badge/AppVersion-1.17.0-informational?style=flat-square)
Open Source Continuous File Synchronization
@@ -78,7 +78,7 @@ N/A
|-----|------|---------|-------------|
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"syncthing/syncthing"` | |
| image.tag | string | `"1.16.1"` | |
| image.tag | string | `"1.17.0"` | |
| ingress.enabled | bool | `false` | |
| persistence.data.emptyDir.enabled | bool | `false` | |
| persistence.data.enabled | bool | `false` | |
@@ -108,6 +108,20 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [1.3.1]
#### Added
- N/A
#### Changed
- Updated syncthing container image version to `v1.17.0`.
#### Removed
- N/A
### [1.3.0]
#### Added
@@ -151,6 +165,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[1.3.1]: #1.3.1
[1.3.0]: #1.3.0
[1.1.2]: #1.1.2
[1.0.0]: #1.0.0

View File

@@ -9,6 +9,20 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [1.3.1]
#### Added
- N/A
#### Changed
- Updated syncthing container image version to `v1.17.0`.
#### Removed
- N/A
### [1.3.0]
#### Added
@@ -52,6 +66,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[1.3.1]: #1.3.1
[1.3.0]: #1.3.0
[1.1.2]: #1.1.2
[1.0.0]: #1.0.0

View File

@@ -8,7 +8,7 @@
image:
repository: syncthing/syncthing
pullPolicy: IfNotPresent
tag: 1.16.1
tag: 1.17.0
strategy:
type: Recreate