github.com/abayer/test-infra@v0.0.5/mungegithub/submit-queue/nginx-redirect/README.md (about)

     1  ## Nginx HTTP->HTTPS redirector
     2  
     3  This service sits behind the main submit-queue load balancer and 
     4  intercepts HTTP (as indicated by the `X-Forwarded-Proto` header)
     5  and sends a 301 redirect to HTTPS.
     6  
     7  ## Deploying
     8  
     9  ### Create the config-map
    10  
    11  ```
    12  kubectl create cm nginx-https-redirect --from-file=nginx.conf=nginx.conf
    13  ```
    14  
    15  Note that the config is _not_ automatically updated, if you update the
    16  `ConfigMap` you need to delete any existing `Pods` in the nginx
    17  redirector to pick up the new config.
    18  
    19  TODO: We should really version the ConfigMap and do this via rolling-update.
    20  
    21  ### Deploy nginx
    22  
    23  ```
    24  kubectl create -f nginx-deploy.yaml
    25  ```
    26  
    27  ### Deploy the service
    28  (this shouldn't really ever be needed)
    29  
    30  ```
    31  kubectl create -f nginx-svc.yaml
    32  ```