Last active
          July 2, 2020 13:34 
        
      - 
      
- 
        Save steve-todorov/291b815b1181f9f563b56b105cdf73dd to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: ingressroutes.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: IngressRoute | |
| plural: ingressroutes | |
| singular: ingressroute | |
| scope: Namespaced | |
| --- | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: middlewares.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: Middleware | |
| plural: middlewares | |
| singular: middleware | |
| scope: Namespaced | |
| --- | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: ingressroutetcps.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: IngressRouteTCP | |
| plural: ingressroutetcps | |
| singular: ingressroutetcp | |
| scope: Namespaced | |
| --- | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: ingressrouteudps.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: IngressRouteUDP | |
| plural: ingressrouteudps | |
| singular: ingressrouteudp | |
| scope: Namespaced | |
| --- | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: tlsoptions.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: TLSOption | |
| plural: tlsoptions | |
| singular: tlsoption | |
| scope: Namespaced | |
| --- | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: tlsstores.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: TLSStore | |
| plural: tlsstores | |
| singular: tlsstore | |
| scope: Namespaced | |
| --- | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: traefikservices.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: TraefikService | |
| plural: traefikservices | |
| singular: traefikservice | |
| scope: Namespaced | 
  
    
      This file contains hidden or 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
    
  
  
    
  | apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: traefik | |
| spec: | |
| ports: | |
| - protocol: TCP | |
| name: web | |
| port: 8000 | |
| - protocol: TCP | |
| name: admin | |
| port: 8080 | |
| - protocol: TCP | |
| name: websecure | |
| port: 4443 | |
| selector: | |
| app: traefik | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: whoami | |
| spec: | |
| ports: | |
| - protocol: TCP | |
| name: web | |
| port: 80 | |
| selector: | |
| app: whoami | 
  
    
      This file contains hidden or 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
    
  
  
    
  | apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| namespace: default | |
| name: traefik-ingress-controller | |
| --- | |
| kind: Deployment | |
| apiVersion: apps/v1 | |
| metadata: | |
| namespace: default | |
| name: traefik | |
| labels: | |
| app: traefik | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: traefik | |
| template: | |
| metadata: | |
| labels: | |
| app: traefik | |
| spec: | |
| serviceAccountName: traefik-ingress-controller | |
| containers: | |
| - name: traefik | |
| image: traefik:v2.2 | |
| args: | |
| - --api.insecure | |
| - --accesslog | |
| - --entrypoints.web.Address=:8000 | |
| - --entrypoints.websecure.Address=:4443 | |
| - --providers.kubernetescrd | |
| - --certificatesresolvers.cs-org-resolver.acme.tlschallenge | |
| - [email protected] | |
| - --certificatesresolvers.cs-org-resolver.acme.storage=acme.json | |
| # Please note that this is the staging Let's Encrypt server. | |
| # Once you get things working, you should remove that whole line altogether. | |
| - --certificatesresolvers.cs-org-resolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory | |
| ports: | |
| - name: web | |
| containerPort: 8000 | |
| - name: websecure | |
| containerPort: 4443 | |
| - name: admin | |
| containerPort: 8080 | |
| --- | |
| kind: Deployment | |
| apiVersion: apps/v1 | |
| metadata: | |
| namespace: default | |
| name: whoami | |
| labels: | |
| app: whoami | |
| spec: | |
| replicas: 2 | |
| selector: | |
| matchLabels: | |
| app: whoami | |
| template: | |
| metadata: | |
| labels: | |
| app: whoami | |
| spec: | |
| containers: | |
| - name: whoami | |
| image: containous/whoami | |
| ports: | |
| - name: web | |
| containerPort: 80 | 
  
    
      This file contains hidden or 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
    
  
  
    
  | apiVersion: traefik.containo.us/v1alpha1 | |
| kind: IngressRoute | |
| metadata: | |
| name: simpleingressroute | |
| namespace: default | |
| spec: | |
| entryPoints: | |
| - web | |
| routes: | |
| - match: Host(`your.example.com`) && PathPrefix(`/notls`) | |
| kind: Rule | |
| services: | |
| - name: whoami | |
| port: 80 | |
| --- | |
| apiVersion: traefik.containo.us/v1alpha1 | |
| kind: IngressRoute | |
| metadata: | |
| name: ingressroutetls | |
| namespace: default | |
| spec: | |
| entryPoints: | |
| - websecure | |
| routes: | |
| - match: Host(`whoami.sc-traefik.carlspring.org`) && PathPrefix(`/tls`) | |
| kind: Rule | |
| services: | |
| - name: whoami | |
| port: 80 | |
| tls: | |
| certResolver: cs-org-resolver | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment