config-ambassador-ingress.sh 747 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -o errexit
  3. # add ambassador ingress controller
  4. kubectl apply -f https://github.com/datawire/ambassador-operator/releases/latest/download/ambassador-operator-crds.yaml
  5. kubectl apply -n ambassador -f https://github.com/datawire/ambassador-operator/releases/latest/download/ambassador-operator-kind.yaml
  6. kubectl wait --timeout=180s -n ambassador --for=condition=deployed ambassadorinstallations/ambassador
  7. # create ingress class of ambassador and make it the default for any created ingress
  8. cat <<EOF | kubectl apply -f -
  9. apiVersion: networking.k8s.io/v1
  10. kind: IngressClass
  11. metadata:
  12. name: ambassador
  13. annotations:
  14. ingressclass.kubernetes.io/is-default-class: "true"
  15. spec:
  16. controller: getambassador.io/ingress-controller
  17. EOF