declare gitea external service
This commit is contained in:
@@ -206,10 +206,22 @@
|
|||||||
spec:
|
spec:
|
||||||
repo: https://traefik.github.io/charts
|
repo: https://traefik.github.io/charts
|
||||||
chart: traefik
|
chart: traefik
|
||||||
version: v37.0.0
|
version: v37.4.0
|
||||||
targetNamespace: kube-system
|
targetNamespace: kube-system
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
{{ traefik_helm_values | to_nice_yaml | indent( width=4 ) }}
|
{{ traefik_helm_values | to_nice_yaml | indent( width=4 ) }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: gitea-external
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
type: ExternalName
|
||||||
|
externalName: {{ hostvars[groups.gitea[0]]['preferred_ip'] }}
|
||||||
|
ports:
|
||||||
|
- port: 3000
|
||||||
|
targetPort: 3000
|
||||||
vars:
|
vars:
|
||||||
traefik_config_yaml:
|
traefik_config_yaml:
|
||||||
http:
|
http:
|
||||||
@@ -281,7 +293,7 @@
|
|||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
# default is https://github.com/traefik/traefik-helm-chart/blob/v25.0.0/traefik/values.yaml <- for v25 (`kubectl describe deployments.apps traefik -n kube-system | grep helm.sh/chart`)
|
# default is https://github.com/traefik/traefik-helm-chart/blob/v25.0.0/traefik/values.yaml <- for v25 (`kubectl describe deployments.apps traefik -n kube-system | grep helm.sh/chart`)
|
||||||
# current is https://github.com/traefik/traefik-helm-chart/blob/v30.1.0/traefik/values.yaml
|
# current is https://github.com/traefik/traefik-helm-chart/blob/v37.4.0/traefik/values.yaml
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
node-role.kubernetes.io/control-plane: 'true' # make predictible choice of node to direct https traffic to this node and avoid NAT/loss of client IP
|
node-role.kubernetes.io/control-plane: 'true' # make predictible choice of node to direct https traffic to this node and avoid NAT/loss of client IP
|
||||||
service:
|
service:
|
||||||
@@ -347,6 +359,7 @@
|
|||||||
- '--providers.file.filename=/config/dynamic.yaml'
|
- '--providers.file.filename=/config/dynamic.yaml'
|
||||||
- '--providers.kubernetesingress.ingressendpoint.publishedservice=kube-system/traefik'
|
- '--providers.kubernetesingress.ingressendpoint.publishedservice=kube-system/traefik'
|
||||||
- "--providers.kubernetescrd.allowcrossnamespace=true"
|
- "--providers.kubernetescrd.allowcrossnamespace=true"
|
||||||
|
- "--providers.kubernetescrd.allowExternalNameServices=true"
|
||||||
certificatesResolvers:
|
certificatesResolvers:
|
||||||
letsencrypt:
|
letsencrypt:
|
||||||
acme:
|
acme:
|
||||||
|
|||||||
Reference in New Issue
Block a user