automatically deploy traefik
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
name: traefik
|
||||
chart: traefik/traefik
|
@@ -2,7 +2,6 @@ apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: traefik-config
|
||||
namespace: traefik-system
|
||||
data:
|
||||
traefik.toml: |
|
||||
[ping]
|
||||
@@ -69,6 +68,8 @@ data:
|
||||
address = ":9100"
|
||||
[entryPoints.traefik]
|
||||
address = ":9000"
|
||||
[entryPoints.dnsovertls] # route dns over https to other pods but provide own certificate
|
||||
address = ":853"
|
||||
|
||||
[metrics]
|
||||
[metrics.influxDB2]
|
20
infrastructure/traefik-system/kustomization.yaml
Normal file
20
infrastructure/traefik-system/kustomization.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- pvc.yaml
|
||||
- configmap.yaml
|
||||
|
||||
namespace: traefik-system
|
||||
|
||||
helmCharts:
|
||||
- name: traefik
|
||||
releaseName: traefik
|
||||
version: 26.0.0
|
||||
valuesFile: values.yaml
|
||||
repo: https://helm.traefik.io/traefik
|
||||
# - name: telegraf
|
||||
# releaseName: telegraf?
|
||||
# version: "?"
|
||||
# valuesFile: telegraf.values.yaml
|
||||
# repo: https://helm.influxdata.com/
|
4
infrastructure/traefik-system/namespace.yaml
Normal file
4
infrastructure/traefik-system/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: placeholder
|
@@ -1,13 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
namespace: traefik-system
|
||||
name: traefik-certificate
|
||||
spec:
|
||||
# storageClassName: fast
|
||||
capacity:
|
||||
storage: "10Mi"
|
||||
# volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
@@ -17,10 +14,8 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
namespace: traefik-system
|
||||
name: traefik-certificate
|
||||
spec:
|
||||
# storageClassName: fast
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
|
@@ -1,2 +0,0 @@
|
||||
name: telegraf-traefik
|
||||
chart: influxdata/telegraf
|
@@ -1,11 +1,3 @@
|
||||
# Default values for Traefik
|
||||
image:
|
||||
name: traefik
|
||||
# defaults to appVersion
|
||||
tag: ""
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
|
||||
#
|
||||
# Configure the deployment
|
||||
#
|
||||
@@ -158,12 +150,6 @@ volumes: []
|
||||
# name: traefik-config
|
||||
|
||||
|
||||
# - name: public-cert
|
||||
# mountPath: "/certs"
|
||||
# type: secret
|
||||
# - name: '{{ printf "%s-configs" .Release.Name }}'
|
||||
# mountPath: "/config"
|
||||
# type: configMap
|
||||
|
||||
# Additional volumeMounts to add to the Traefik container
|
||||
additionalVolumeMounts:
|
||||
@@ -192,24 +178,17 @@ additionalArguments: []
|
||||
env:
|
||||
- name: TZ
|
||||
value: "Europe/Berlin"
|
||||
# - name: SOME_VAR
|
||||
# value: some-var-value
|
||||
# - name: SOME_VAR_FROM_CONFIG_MAP
|
||||
# valueFrom:
|
||||
# configMapRef:
|
||||
# name: configmap-name
|
||||
# key: config-key
|
||||
# - name: SOME_SECRET
|
||||
# valueFrom:
|
||||
# secretKeyRef:
|
||||
# name: secret-name
|
||||
# key: secret-key
|
||||
|
||||
|
||||
|
||||
|
||||
# Configure ports
|
||||
ports: {} # leave unconfigured to use the values from the toml file
|
||||
ports:
|
||||
# add a new one, the other ones are kept the same.
|
||||
dnsovertls:
|
||||
port: 853
|
||||
expose: true
|
||||
exposedPort: 853
|
||||
protocol: TCP
|
||||
|
||||
|
||||
envFrom: []
|
||||
|
Reference in New Issue
Block a user