k8s apps - traefik ingress
cluster.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: worker
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 32080
hostPort: 8080
protocol: TCP
- containerPort: 32443
hostPort: 8443
protocol: TCP
## insecure - use port-forward
- containerPort: 32090
hostPort: 9000
protocol: TCP
traefik.values.yaml
---
providers:
kubernetesCRD:
namespaces:
- default
- traefik
kubernetesIngress:
namespaces:
- default
- traefik
ports:
ports:
traefik:
expose: true
nodePort: 32090
web:
nodePort: 32080
websecure:
nodePort: 32443
# netbox:
# expose: true
# nodePort: 80
service:
type: NodePort
> helm repo add traefik https://helm.traefik.io/traefik
> helm install traefik traefik/traefik \
-n traefik --create-namespace -f traefik.values.yaml
# helm uninstall traefik -n traefik
> curl 0.0.0.0:9000
27-09-2021