Rearrange deployment files into kustomizations
This commit is contained in:
parent
1bd3fd2429
commit
51ad0bc54b
56 changed files with 532 additions and 1094 deletions
|
|
@ -47,16 +47,21 @@ make build container
|
|||
|
||||
docker save "${DEV_IMAGE}" | (eval $(minikube docker-env --shell bash) && docker load) || true
|
||||
|
||||
echo "[dev-env] installing kubectl"
|
||||
kubectl version || brew install kubectl
|
||||
for tool in kubectl kustomize; do
|
||||
echo "[dev-env] installing $tool"
|
||||
$tool version || brew install $tool
|
||||
done
|
||||
|
||||
if ! kubectl get namespace $NAMESPACE; then
|
||||
kubectl create namespace $NAMESPACE
|
||||
fi
|
||||
|
||||
ROOT=./deploy/minikube
|
||||
|
||||
pushd $ROOT
|
||||
kustomize edit set namespace $NAMESPACE
|
||||
kustomize edit set image quay.io/kubernetes-ingress-controller/nginx-ingress-controller=${DEV_IMAGE}
|
||||
popd
|
||||
|
||||
echo "[dev-env] deploying NGINX Ingress controller in namespace $NAMESPACE"
|
||||
cat ./deploy/mandatory.yaml | kubectl apply --namespace=$NAMESPACE -f -
|
||||
cat ./deploy/provider/baremetal/service-nodeport.yaml | kubectl apply --namespace=$NAMESPACE -f -
|
||||
|
||||
echo "updating image..."
|
||||
kubectl set image \
|
||||
deployments \
|
||||
--namespace ingress-nginx \
|
||||
--selector app.kubernetes.io/name=ingress-nginx \
|
||||
nginx-ingress-controller=${DEV_IMAGE}
|
||||
kustomize build $ROOT | kubectl apply -f -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue