chore(Apps): move traefik and k8s gateway to core train

This commit is contained in:
kjeld Schouten-Lebbing
2021-11-14 11:43:45 +01:00
parent 9ce1d87588
commit b7b107c99a
46 changed files with 11 additions and 6 deletions
-24
View File
@@ -1,24 +0,0 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
-240
View File
@@ -1,240 +0,0 @@
# Changelog<br>
<a name="k8s-gateway-4.0.7"></a>
### [k8s-gateway-4.0.7](https://github.com/truecharts/apps/compare/k8s-gateway-4.0.6...k8s-gateway-4.0.7) (2021-11-09)
#### Chore
* update non-major deps helm releases ([#1297](https://github.com/truecharts/apps/issues/1297))
<a name="k8s-gateway-4.0.6"></a>
### [k8s-gateway-4.0.6](https://github.com/truecharts/apps/compare/k8s-gateway-4.0.5...k8s-gateway-4.0.6) (2021-11-07)
#### Chore
* update non-major deps helm releases ([#1295](https://github.com/truecharts/apps/issues/1295))
<a name="k8s-gateway-4.0.5"></a>
### [k8s-gateway-4.0.5](https://github.com/truecharts/apps/compare/k8s-gateway-4.0.4...k8s-gateway-4.0.5) (2021-11-07)
#### Chore
* update non-major deps helm releases ([#1291](https://github.com/truecharts/apps/issues/1291))
#### Chore
* Simplify GUI for deployment, persistence and securityContext ([#1289](https://github.com/truecharts/apps/issues/1289))
#### Feat
* Simplify the Services GUI ([#1290](https://github.com/truecharts/apps/issues/1290))
<a name="k8s-gateway-4.0.4"></a>
### [k8s-gateway-4.0.4](https://github.com/truecharts/apps/compare/k8s-gateway-4.0.3...k8s-gateway-4.0.4) (2021-11-02)
#### Chore
* update non-major deps helm releases ([#1267](https://github.com/truecharts/apps/issues/1267))
<a name="k8s-gateway-4.0.3"></a>
### [k8s-gateway-4.0.3](https://github.com/truecharts/apps/compare/k8s-gateway-4.0.2...k8s-gateway-4.0.3) (2021-11-01)
#### Chore
* update non-major deps helm releases ([#1264](https://github.com/truecharts/apps/issues/1264))
<a name="k8s-gateway-4.0.2"></a>
### [k8s-gateway-4.0.2](https://github.com/truecharts/apps/compare/k8s-gateway-4.0.1...k8s-gateway-4.0.2) (2021-10-26)
#### Chore
* update non-major deps helm releases ([#1245](https://github.com/truecharts/apps/issues/1245))
<a name="k8s-gateway-4.0.1"></a>
### [k8s-gateway-4.0.1](https://github.com/truecharts/apps/compare/k8s-gateway-4.0.0...k8s-gateway-4.0.1) (2021-10-26)
#### Chore
* update helm chart common to v8.3.15 ([#1240](https://github.com/truecharts/apps/issues/1240))
<a name="k8s-gateway-4.0.0"></a>
### [k8s-gateway-4.0.0](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.16...k8s-gateway-4.0.0) (2021-10-25)
#### Chore
* Adapt for TrueNAS SCALE RC1
<a name="k8s-gateway-3.0.16"></a>
### [k8s-gateway-3.0.16](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.15...k8s-gateway-3.0.16) (2021-10-20)
#### Chore
* bump apps, remove duplicates and move incubator to stable for RC1
<a name="k8s-gateway-3.0.13"></a>
### [k8s-gateway-3.0.13](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.12...k8s-gateway-3.0.13) (2021-10-20)
#### Chore
* bump versions to rerelease and fix icons
<a name="k8s-gateway-3.0.12"></a>
### [k8s-gateway-3.0.12](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.11...k8s-gateway-3.0.12) (2021-10-19)
#### Change
* Project-Eclipse 3, Automatically generate item.yaml ([#1178](https://github.com/truecharts/apps/issues/1178))
#### Chore
* Project-Eclipse 5, move app-readme to automatic generation script ([#1181](https://github.com/truecharts/apps/issues/1181))
* Project-Eclipse part 2, adapting and cleaning changelog ([#1173](https://github.com/truecharts/apps/issues/1173))
* update helm chart common to v8.3.13 ([#1184](https://github.com/truecharts/apps/issues/1184))
#### Feat
* Project-Eclipse 4, Add App grading annotations to Chart.yaml ([#1180](https://github.com/truecharts/apps/issues/1180))
#### Refactor
* Project Eclipse Part 6, move questions.yaml to root App folder ([#1182](https://github.com/truecharts/apps/issues/1182))
<a name="k8s-gateway-3.0.11"></a>
### [k8s-gateway-3.0.11](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.10...k8s-gateway-3.0.11) (2021-10-19)
#### Fix
* fix previous SCALE bugfix not correctly being applied
<a name="k8s-gateway-3.0.10"></a>
### [k8s-gateway-3.0.10](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.9...k8s-gateway-3.0.10) (2021-10-19)
#### Fix
* Solve issues regarding ix_values.yaml not containing the image and tag definitions. ([#1176](https://github.com/truecharts/apps/issues/1176))
<a name="k8s-gateway-3.0.9"></a>
### [k8s-gateway-3.0.9](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.8...k8s-gateway-3.0.9) (2021-10-18)
#### Refactor
* Project Eclipse - part 1 - remove ix_values.yaml ([#1168](https://github.com/truecharts/apps/issues/1168))
<a name="k8s-gateway-3.0.8"></a>
### [k8s-gateway-3.0.8](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.7...k8s-gateway-3.0.8) (2021-10-17)
#### Chore
* update helm chart common to v8.3.10 ([#1160](https://github.com/truecharts/apps/issues/1160))
<a name="k8s-gateway-3.0.7"></a>
### [k8s-gateway-3.0.7](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.6...k8s-gateway-3.0.7) (2021-10-13)
#### Chore
* update non-major deps helm releases ([#1133](https://github.com/truecharts/apps/issues/1133))
<a name="k8s-gateway-3.0.6"></a>
### [k8s-gateway-3.0.6](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.5...k8s-gateway-3.0.6) (2021-10-12)
#### Chore
* update non-major deps helm releases ([#1126](https://github.com/truecharts/apps/issues/1126))
<a name="k8s-gateway-3.0.5"></a>
### [k8s-gateway-3.0.5](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.4...k8s-gateway-3.0.5) (2021-10-12)
#### Chore
* update non-major deps helm releases ([#1123](https://github.com/truecharts/apps/issues/1123))
<a name="k8s-gateway-3.0.4"></a>
### [k8s-gateway-3.0.4](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.3...k8s-gateway-3.0.4) (2021-10-05)
#### Chore
* update non-major deps helm releases ([#1099](https://github.com/truecharts/apps/issues/1099))
<a name="k8s-gateway-3.0.3"></a>
### [k8s-gateway-3.0.3](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.2...k8s-gateway-3.0.3) (2021-09-29)
#### Chore
* update helm chart common to v8.0.13 ([#1060](https://github.com/truecharts/apps/issues/1060))
<a name="k8s-gateway-3.0.1"></a>
### [k8s-gateway-3.0.1](https://github.com/truecharts/apps/compare/k8s-gateway-3.0.0...k8s-gateway-3.0.1) (2021-09-26)
<a name="k8s-gateway-3.0.0"></a>
### [k8s-gateway-3.0.0](https://github.com/truecharts/apps/compare/k8s-gateway-2.0.2...k8s-gateway-3.0.0) (2021-09-26)
<a name="k8s-gateway-2.0.2"></a>
### [k8s-gateway-2.0.2](https://github.com/truecharts/apps/compare/k8s-gateway-2.0.1...k8s-gateway-2.0.2) (2021-09-21)
#### Chore
* update non-major deps helm releases ([#1014](https://github.com/truecharts/apps/issues/1014))
<a name="k8s-gateway-2.0.1"></a>
### [k8s-gateway-2.0.1](https://github.com/truecharts/apps/compare/k8s-gateway-1.0.10...k8s-gateway-2.0.1) (2021-09-13)
#### Chore
* update non-major ([#962](https://github.com/truecharts/apps/issues/962))
#### Feat
* add new GUI and VPN support to all Apps ([#977](https://github.com/truecharts/apps/issues/977))
* Add VPN addon and move some config to includes ([#973](https://github.com/truecharts/apps/issues/973))
* pin all container references to digests ([#963](https://github.com/truecharts/apps/issues/963))
* Move some common containers to our own containers
<a name="k8s-gateway-1.0.10"></a>
## [k8s-gateway-1.0.10](https://github.com/truecharts/apps/compare/k8s-gateway-1.0.9...k8s-gateway-1.0.10) (2021-09-08)
-8
View File
@@ -1,8 +0,0 @@
# Configuration Options
##### Connecting to other apps
If you need to connect this App to other Apps on TrueNAS SCALE, please refer to our "Linking Apps Internally" quick-start guide:
https://truecharts.org/manual/Quick-Start%20Guides/14-linking-apps/
##### Available config options
In the future this page is going to contain an automated list of options available in the installation/edit UI.
-29
View File
@@ -1,29 +0,0 @@
apiVersion: v2
appVersion: "0.1.8"
dependencies:
- name: common
repository: https://truecharts.org
version: 8.5.4
deprecated: false
description: A Helm chart for the k8s_gateway CoreDNS plugin
home: https://github.com/truecharts/apps/tree/master/charts/stable/k8s-gateway
icon: https://cncf-branding.netlify.app/img/projects/coredns/icon/black/coredns-icon-black.png
keywords:
- DNS
- networking
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: truecharts.org
name: k8s-gateway
sources:
- https://github.com/ori-edge/k8s_gateway
type: application
version: 4.0.7
annotations:
truecharts.org/catagories: |
- networking
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
-37
View File
@@ -1,37 +0,0 @@
# Introduction
A Helm chart for the k8s_gateway CoreDNS plugin
TrueCharts are designed to be installed as TrueNAS SCALE app only. We can not guarantee this charts works as a stand-alone helm installation.
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/apps/issues/new/choose)**
## Source Code
* <https://github.com/ori-edge/k8s_gateway>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://truecharts.org | common | 8.5.4 |
## Installing the Chart
To install this App on TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/03-Installing-an-App/).
## Uninstalling the Chart
To remove this App from TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/07-Deleting-an-App/).
## Support
- Please check our [quick-start guides](https://truecharts.org/manual/Quick-Start%20Guides/01-Open-Apps/) first.
- See the [Wiki](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/apps/issues/new/choose)
---
All Rights Reserved - The TrueCharts Project
-67
View File
@@ -1,67 +0,0 @@
# Default Helm-Values
TrueCharts is primarily build to supply TrueNAS SCALE Apps.
However, we also supply all Apps as standard Helm-Charts. In this document we aim to document the default values in our values.yaml file.
Most of our Apps also consume our "common" Helm Chart.
If this is the case, this means that all values.yaml values are set to the common chart values.yaml by default. This values.yaml file will only contain values that deviate from the common chart.
You will, however, be able to use all values referenced in the common chart here, besides the values listed in this document.
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| apex | string | `""` | Override the default `serviceName.namespace` domain apex |
| args[0] | string | `"-conf"` | |
| args[1] | string | `"/etc/coredns/Corefile"` | |
| domains | list | `[{"dnsChallenge":{"domain":"dns01.clouddns.com","enabled":false},"domain":"example.com"}]` | list of processed domains |
| domains[0] | object | `{"dnsChallenge":{"domain":"dns01.clouddns.com","enabled":false},"domain":"example.com"}` | Delegated domain |
| domains[0].dnsChallenge | object | `{"domain":"dns01.clouddns.com","enabled":false}` | Optional configuration option for DNS01 challenge that will redirect all acme challenge requests to external cloud domain (e.g. managed by cert-manager) See: https://cert-manager.io/docs/configuration/acme/dns01/ |
| forward.enabled | bool | `true` | |
| forward.options[0].name | string | `"tls_servername"` | |
| forward.options[0].value | string | `"cloudflare-dns.com"` | |
| forward.primary | string | `"tls://1.1.1.1"` | |
| forward.secondary | string | `"tls://1.0.0.1"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"quay.io/oriedge/k8s_gateway"` | |
| image.tag | string | `"v0.1.8@sha256:4937e28bb5dc4bd9c700a72d28e50d43929b4a9e8f64b4a306346426e6ed01e2"` | |
| podSecurityContext.runAsGroup | int | `0` | |
| podSecurityContext.runAsUser | int | `0` | |
| probes.liveness.custom | bool | `true` | |
| probes.liveness.spec.failureThreshold | int | `5` | |
| probes.liveness.spec.httpGet.path | string | `"/health"` | |
| probes.liveness.spec.httpGet.port | int | `8080` | |
| probes.liveness.spec.httpGet.scheme | string | `"HTTP"` | |
| probes.liveness.spec.initialDelaySeconds | int | `60` | |
| probes.liveness.spec.successThreshold | int | `1` | |
| probes.liveness.spec.timeoutSeconds | int | `5` | |
| probes.readiness.custom | bool | `true` | |
| probes.readiness.spec.failureThreshold | int | `5` | |
| probes.readiness.spec.httpGet.path | string | `"/ready"` | |
| probes.readiness.spec.httpGet.port | int | `8181` | |
| probes.readiness.spec.httpGet.scheme | string | `"HTTP"` | |
| probes.readiness.spec.initialDelaySeconds | int | `10` | |
| probes.readiness.spec.successThreshold | int | `1` | |
| probes.readiness.spec.timeoutSeconds | int | `5` | |
| probes.startup.custom | bool | `true` | |
| probes.startup.spec.failureThreshold | int | `60` | |
| probes.startup.spec.httpGet.path | string | `"/ready"` | |
| probes.startup.spec.httpGet.port | int | `8181` | |
| probes.startup.spec.httpGet.scheme | string | `"HTTP"` | |
| probes.startup.spec.initialDelaySeconds | int | `3` | |
| probes.startup.spec.periodSeconds | int | `5` | |
| probes.startup.spec.timeoutSeconds | int | `2` | |
| rbac | object | See below | Create a ClusterRole and ClusterRoleBinding |
| rbac.enabled | bool | `true` | Enables or disables the ClusterRole and ClusterRoleBinding |
| rbac.rules | list | `[{"apiGroups":[""],"resources":["services","namespaces"],"verbs":["list","watch"]},{"apiGroups":["extensions","networking.k8s.io"],"resources":["ingresses"],"verbs":["list","watch"]}]` | Set Rules on the ClusterRole |
| secondary | string | `""` | Service name of a secondary DNS server (should be `serviceName.namespace`) |
| securityContext.runAsNonRoot | bool | `false` | |
| service.main.enabled | bool | `true` | |
| service.main.ports.main.port | int | `53` | |
| service.main.ports.main.protocol | string | `"UDP"` | |
| service.main.ports.main.targetPort | int | `53` | |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
| ttl | int | `300` | TTL for non-apex responses (in seconds) |
| watchedResources | list | `[]` | Limit what kind of resources to watch, e.g. watchedResources: ["Ingress"] |
All Rights Reserved - The TrueCharts Project
-335
View File
@@ -1,335 +0,0 @@
# Include{groups}
questions:
- variable: portal
group: "Container Image"
label: "Configure Portal Button"
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable"
description: "enable the portal button"
schema:
hidden: true
editable: false
type: boolean
default: false
# Include{global}
- variable: controller
group: "Controller"
label: ""
schema:
type: dict
attrs:
- variable: advanced
label: "Show Advanced Controller Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: type
description: "Please specify type of workload to deploy"
label: "(Advanced) Controller Type"
schema:
type: string
default: "deployment"
required: true
enum:
- value: "deployment"
description: "Deployment"
- value: "statefulset"
description: "Statefulset"
- value: "daemonset"
description: "Daemonset"
- variable: replicas
description: "Number of desired pod replicas"
label: "Desired Replicas"
schema:
type: int
default: 1
required: true
- variable: strategy
description: "Please specify type of workload to deploy"
label: "(Advanced) Update Strategy"
schema:
type: string
default: "RollingUpdate"
required: true
enum:
- value: "Recreate"
description: "Recreate: Kill existing pods before creating new ones"
- value: "RollingUpdate"
description: "RollingUpdate: Create new pods and then kill old ones"
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: env
group: "Container Configuration"
label: "Image Environment"
schema:
type: dict
attrs:
# Include{fixedEnv}
# Include{containerConfig}
- variable: domains
group: "App Configuration"
label: "Domains"
description: "Please refer to CoreDNS docs for options"
schema:
type: list
default: []
items:
- variable: domainEntry
label: ""
schema:
type: dict
attrs:
- variable: domain
label: "Domain name"
schema:
type: string
required: true
default: "example.com"
- variable: dnsChallenge
label: "Forward dnsChallenge"
description: "Optional configuration option for DNS01 challenge that will redirect all acme"
schema:
type: dict
attrs:
- variable: enabled
label: "Enable"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: domain
label: "Forward to Domain"
schema:
type: string
required: true
default: "dns01.clouddns.com"
- variable: forward
group: "App Configuration"
label: "Forward DNS To"
schema:
type: dict
attrs:
- variable: enabled
label: "Enabled"
schema:
type: boolean
default: true
show_subquestions_if: true
subquestions:
- variable: primary
label: "Primary"
schema:
type: string
required: true
default: "1.1.1.1"
- variable: secondary
label: "Secondary"
schema:
type: string
required: true
default: "1.0.0.1"
- variable: options
label: "Forward Options"
description: "Please refer to CoreDNS docs for options"
schema:
type: list
default: []
items:
- variable: optionEntry
label: "Option"
schema:
type: dict
attrs:
- variable: name
label: "Name"
schema:
type: string
required: true
default: ""
- variable: value
label: "Value"
schema:
type: string
required: true
default: ""
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
schema:
type: dict
attrs:
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
type: dict
attrs:
# Include{serviceSelector}
- variable: main
label: "Main Service Port Configuration"
schema:
type: dict
attrs:
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: protocol
label: "Port Type"
schema:
type: string
default: "UDP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 53
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
schema:
type: int
default: 53
editable: true
required: true
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostNetwork
group: "Networking and Services"
label: "Host-Networking (Complicated)"
schema:
type: boolean
default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceList}
- variable: advancedSecurity
label: "Show Advanced Security Settings"
group: "Security and Permissions"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: securityContext
label: "Security Context"
schema:
type: dict
attrs:
- variable: privileged
label: "Privileged mode"
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: true
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
type: boolean
default: false
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
schema:
type: dict
attrs:
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 0
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
schema:
type: int
default: 0
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
- variable: supplementalGroups
label: "supplemental Groups"
schema:
type: list
default: []
items:
- variable: supplementalGroupsEntry
label: "supplemental Group"
schema:
type: int
- variable: fsGroupChangePolicy
label: "When should we take ownership?"
schema:
type: string
default: "OnRootMismatch"
enum:
- value: "OnRootMismatch"
description: "OnRootMismatch"
- value: "Always"
description: "Always"
# Include{resources}
# Include{advanced}
# Include{addons}
@@ -1,64 +0,0 @@
{{/*
Create the matchable regex from domain
*/}}
{{- define "k8s-gateway.configmap.regex" -}}
{{- if .Values.domain }}
{{- .Values.domain | replace "." "[.]" -}}
{{- else -}}
{{ "unset" }}
{{- end }}
{{- end -}}
{{/* Define the configmap */}}
{{- define "k8s-gateway.configmap" -}}
{{- $values := .Values }}
{{- $fqdn := ( include "common.names.fqdn" . ) }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}-corefile
labels:
{{- include "common.labels" . | nindent 4 }}
data:
Corefile: |-
.:53 {
errors
log
health {
lameduck 5s
}
ready
{{- range .Values.domains }}
{{- if .dnsChallenge.enabled }}
template IN ANY {{ required "Delegated domain ('domain') is mandatory " .domain }} {
match "_acme-challenge[.](.*)[.]{{ include "k8s-gateway.configmap.regex" . }}"
answer "{{ "{{" }} .Name {{ "}}" }} 5 IN CNAME {{ "{{" }} index .Match 1 {{ "}}" }}.{{ required "DNS01 challenge domain is mandatory " $values.dnsChallenge.domain }}"
fallthrough
}
{{- end }}
k8s_gateway "{{ required "Delegated domain ('domain') is mandatory " .domain }}" {
apex {{ $values.apex | default $fqdn }}
ttl {{ $values.ttl }}
{{- if $values.secondary }}
secondary {{ $values.secondary }}
{{- end }}
{{- if $values.watchedResources }}
resources {{ join " " $values.watchedResources }}
{{- end }}
fallthrough
}
{{- end }}
prometheus 0.0.0.0:9153
{{- if .Values.forward.enabled }}
forward . {{ .Values.forward.primary }} {{ .Values.forward.secondary }} {
{{- range .Values.forward.options }}
{{ .name }} {{ .value }}
{{- end }}
}
{{- end }}
loop
reload
loadbalance
}
{{- end -}}
@@ -1,24 +0,0 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.setup" . }}
{{/* Render configmap for nextcloud */}}
{{- include "k8s-gateway.configmap" . }}
{{/* Append the general configMap volume to the volumes */}}
{{- define "k8s-gateway.configvolume" -}}
enabled: "true"
mountPath: "/etc/coredns"
readOnly: true
type: "custom"
volumeSpec:
configMap:
name: {{ include "common.names.fullname" . }}-corefile
items:
- key: Corefile
path: Corefile
{{- end -}}
{{- $_ := set .Values.persistence "config-volume" (include "k8s-gateway.configvolume" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}
-121
View File
@@ -1,121 +0,0 @@
# Default values for Jackett.
image:
repository: quay.io/oriedge/k8s_gateway
pullPolicy: IfNotPresent
tag: v0.1.8@sha256:4937e28bb5dc4bd9c700a72d28e50d43929b4a9e8f64b4a306346426e6ed01e2
securityContext:
runAsNonRoot: false
podSecurityContext:
runAsUser: 0
runAsGroup: 0
args: ["-conf", "/etc/coredns/Corefile"]
# -- TTL for non-apex responses (in seconds)
ttl: 300
# -- Limit what kind of resources to watch, e.g. watchedResources: ["Ingress"]
watchedResources: []
# -- Service name of a secondary DNS server (should be `serviceName.namespace`)
secondary: ""
# -- Override the default `serviceName.namespace` domain apex
apex: ""
# -- list of processed domains
domains:
# -- Delegated domain
- domain: "example.com"
# -- Optional configuration option for DNS01 challenge that will redirect all acme
# challenge requests to external cloud domain (e.g. managed by cert-manager)
# See: https://cert-manager.io/docs/configuration/acme/dns01/
dnsChallenge:
enabled: false
domain: dns01.clouddns.com
forward:
enabled: true
primary: tls://1.1.1.1
secondary: tls://1.0.0.1
options:
- name: tls_servername
value: cloudflare-dns.com
serviceAccount:
# -- Specifies whether a service account should be created
create: true
# -- Create a ClusterRole and ClusterRoleBinding
# @default -- See below
rbac:
# -- Enables or disables the ClusterRole and ClusterRoleBinding
enabled: true
# -- Set Rules on the ClusterRole
rules:
- apiGroups:
- ""
resources:
- services
- namespaces
verbs:
- list
- watch
- apiGroups:
- extensions
- networking.k8s.io
resources:
- ingresses
verbs:
- list
- watch
service:
main:
enabled: true
ports:
main:
protocol: UDP
port: 53
targetPort: 53
probes:
liveness:
custom: true
spec:
httpGet:
path: /health
port: 8080
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
readiness:
custom: true
spec:
httpGet:
path: /ready
port: 8181
scheme: HTTP
initialDelaySeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
startup:
custom: true
spec:
httpGet:
path: /ready
port: 8181
scheme: HTTP
initialDelaySeconds: 3
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 60