# Multiarch with buildx
docker buildx create --name mybuilder --use
docker buildx inspect --bootstrap
docker buildx build --platform linux/amd64,linux/arm64 -t quay.io/kuadrant/petstore3:1.0.x --push .
# also update resources/app.yaml
docker buildx build --load --platform linux/arm64 -t quay.io/kuadrant/petstore3:1.0.x .
docker run --name swaggerapi-petstore3 -p 8080:8080 quay.io/kuadrant/petstore3:1.0.x
Here:
openapi.yaml
kubectl apply -f resources/app.yaml
kubectl wait --namespace=default --for=condition=available --timeout=300s deployment/petstore
kuadrantctl generate gatewayapi httproute --oas openapi.yaml | kubectl apply -f -
kuadrantctl generate kuadrant ratelimitpolicy --oas openapi.yaml | kubectl apply -f -
echo "Petstore API: https://$(kubectl get httproute petstore -n default -o jsonpath='{.spec.hostnames[0]}')"
kubectl -n argocd apply -f argocd/
This actually does 2 things:
- adds the petstore-region-us managedclusterset to the clusterSets list
- sets the numberOfClusters to 2
kubectl patch placement petstore -n argocd --type='json' -p='[{"op": "add", "path": "/spec/clusterSets/-", "value": "petstore-region-us"}, {"op": "replace", "path": "/spec/numberOfClusters", "value": 2}]'