-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Defining Service and IngressRoute for ingress-forwarder * Fixing DNS name for service * Adding additional attributes for IngressRoute service definition. * Allowing External Services in Traefik * Stringifying the boolean * Allowing ExternalNames for Traefik CRDs * Adding Docker1 service and sparkhacks ingressroute * Fixing Traefik endpoint
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: ingress-forwarder | ||
--- | ||
# https://crt.the-mori.com/index/2021-09-17-kubernetes-traefik-forward-traffic-external-ip | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: docker2 | ||
namespace: ingress-forwarder | ||
spec: | ||
type: ExternalName | ||
ports: | ||
- name: docker2 | ||
port: 80 | ||
targetPort: 80 | ||
externalName: 172.29.1.224 | ||
--- | ||
apiVersion: traefik.containo.us/v1alpha1 | ||
kind: IngressRoute | ||
metadata: | ||
name: flourishconf | ||
namespace: ingress-forwarder | ||
spec: | ||
entryPoints: | ||
- web | ||
routes: | ||
- match: Host(`flourishconf.com`) | ||
kind: Rule | ||
services: | ||
- name: docker2 | ||
namespace: ingress-forwarder | ||
passHostHeader: true | ||
kind: Service | ||
port: 80 | ||
scheme: http | ||
--- | ||
# https://crt.the-mori.com/index/2021-09-17-kubernetes-traefik-forward-traffic-external-ip | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: docker1 | ||
namespace: ingress-forwarder | ||
spec: | ||
type: ExternalName | ||
ports: | ||
- name: docker1 | ||
port: 443 | ||
targetPort: 443 | ||
externalName: 172.29.0.31 | ||
--- | ||
apiVersion: traefik.containo.us/v1alpha1 | ||
kind: IngressRoute | ||
metadata: | ||
name: sparkhacksatuic | ||
namespace: ingress-forwarder | ||
spec: | ||
entryPoints: | ||
- websecure | ||
routes: | ||
- match: "Host(`sparkhacksatuic.com`) || Host(`www.sparkhacksatuic.com`)" | ||
kind: Rule | ||
services: | ||
- name: docker1 | ||
namespace: ingress-forwarder | ||
passHostHeader: true | ||
kind: Service | ||
port: 443 | ||
scheme: https |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters