PyAr / pyar_infra

Python Argentina Infrastructure
7 stars 2 forks source link

New .ar domains #42

Closed facundobatista closed 4 years ago

facundobatista commented 4 years ago

We have the new pycon.ar and python.ar domains.

What do we need to make them work?

As a first step I delegated those domains to...

naomi.ns.cloudflare.com
nile.ns.cloudflare.com

...please let me know if I need to change that or do any extra work, thanks!!

gilgamezh commented 4 years ago

I added them to cloudflare (screenshot to see the config needed)

image

gilgamezh commented 4 years ago

updating the container in k8s

 ~/code/pyar_infra   add_new_domains ●  git commit -am "related with #42. Add new .ar domains"                                                                                                                                       565ms 
[add_new_domains d70987e] related with #42. Add new .ar domains
 1 file changed, 2 insertions(+), 2 deletions(-)
 ~/code/pyar_infra   add_new_domains  git push origin add_new_domains                                                                                                                                                                220ms 
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 4 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 528 bytes | 528.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
remote: 
remote: Create a pull request for 'add_new_domains' on GitHub by visiting:
remote:      https://github.com/PyAr/pyar_infra/pull/new/add_new_domains
remote: 
To github.com:PyAr/pyar_infra.git
 * [new branch]      add_new_domains -> add_new_domains
 ~/code/pyar_infra   add_new_domains  helm upgrade --install --wait --recreate-pods pyar-rewrites stable/pyar-rewrites                                                                                                              4337ms 
Release "pyar-rewrites" has been upgraded.
LAST DEPLOYED: Sat Apr 11 20:38:38 2020
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> v1/ConfigMap
NAME          AGE
nginx-config  312d

==> v1/Pod(related)
NAME                           AGE
pyar-rewrites-6ccf97988-fpbdl  8s

==> v1/Service
NAME           AGE
pyar-rewrites  312d

==> v1beta2/Deployment
NAME           AGE
pyar-rewrites  312d

NOTES:
1. Get the application URL by running these commands:
     NOTE: It may take a few minutes for the LoadBalancer IP to be available.
           You can watch the status of by running 'kubectl get svc -w pyar-rewrites'
  export SERVICE_IP=$(kubectl get svc --namespace default pyar-rewrites -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
  echo http://$SERVICE_IP:80
[gilgamezh@web ~]$ curl -I pycon.ar
HTTP/1.1 301 Moved Permanently
Server: nginx/1.16.1
Date: Sat, 11 Apr 2020 18:44:11 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: http://pycon.python.org.ar

[gilgamezh@web ~]$ curl -I python.ar
HTTP/1.1 301 Moved Permanently
Server: nginx/1.16.1
Date: Sat, 11 Apr 2020 18:44:17 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: http://www.python.org.ar/