PyAr / pyar_infra

Python Argentina Infrastructure
6 stars 2 forks source link

Added some new redirects. #100

Closed facundobatista closed 2 years ago

facundobatista commented 2 years ago

Still not in use.

FTR, this is the YAML we built when testing how everything could work in the meeting a couple of weeks ago:

kind: Ingress
apiVersion: extensions/v1beta1
metadata:
  name: redirect-prueba
  annotations:
    kubernetes.io/ingress.class: nginx
    certmanager.k8s.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    nginx.ingress.kubernetes.io/permanent-redirect: https://taniquetil.com.ar
    nginx.ingress.kubernetes.io/configuration-snippet: |
         rewrite /wiki/(.*) $scheme://wiki.python.org.ar/$1 permanent;
         rewrite ^ https://www.python.org.ar$request_uri permanent;
spec:
  tls:
    - hosts:
        - redirect-loco.python.org.ar
        - redirect-loco.python.ar
      secretName: redirectloco-tls-secret
  rules:
    - host: redirect-loco.python.org.ar
    - host: redirect-loco.python.ar
gilgamezh commented 2 years ago

LGTM: remember that you have to update the DNS entries for all this hosts to point to the ingress instead of redirecter

facundobatista commented 2 years ago

All done and tested.