config-nginx-ingress.sh 498 B

1234567891011121314151617
  1. #!/bin/sh
  2. set -o errexit
  3. # add nginx ingress controller
  4. kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml
  5. # create ingress class of contour and make it the default for any created ingress
  6. cat <<EOF | kubectl apply -f -
  7. apiVersion: networking.k8s.io/v1
  8. kind: IngressClass
  9. metadata:
  10. name: nginx
  11. annotations:
  12. "ingressclass.kubernetes.io/is-default-class": "true"
  13. spec:
  14. controller: example.com/ingress-controller
  15. EOF