Install Ambassador API Gateway in OpenShift 4.7

OpenShift | AWS | Kubernetes | API Gateway | Helm3

Prerequisite

  • Make sure that you contain access to your K8s cluster via kubectl as i will demoing using it. You can however using the OpenShift CLI if you want to as well. They are pretty much the same when running these commands.
  • Make sure that you are using an OpenShift cluster. In this example i will be utilize a 4.7 cluster but should be the same for must.

Step 1. Create the Ambassador namespace:

kubectl create namespace ambassador

Step 2. Run the Custom Resource Definitions for Ambassador

kubectl apply -f https://www.getambassador.io/yaml/aes-crds.yaml

Step 4. Download down the Ambassador Edge Stack deployment file and change the Security Context Run As:

Pull down the file: https://www.getambassador.io/yaml/aes.yaml

      securityContext:
runAsUser: 8888
serviceAccountName: ambassador
terminationGracePeriodSeconds: 0
volumes:
      securityContext:
runAsUser: 1000630000
serviceAccountName: ambassador
terminationGracePeriodSeconds: 0
volumes:
Error creating: pods "ambassador-956598cd7-" is forbidden: unable to validate against any security context constraint: [spec.containers[0].securityContext.runAsUser: Invalid value: 8888: must be in the ranges: [1000630000, 1000639999]]

Step 3. Apply the Ambassador Edge Stack Deployment

kubectl apply -f https://www.getambassador.io/yaml/aes.yaml

Step 4. Pull the Service and Verification Installation

kubectl get svc -n ambassador

Enterprise Solution Architect | Certified Kubernetes Administrator ⚓ | SAFe SPC | LeSS Practioner | AWS Solutions Architect | Dev*Ops/GitOps Engineer 🔥

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store