skip to Main Content

invalid characters when using json object in gitlab

this is the code that i used in gitlab bash: kubectl --kubeconfig=$KUBECONFIG -n $NAMESPACE_NAME patch service $CI_PROJECT_NAME -p '{"spec": {"selector": {"app.kubernetes.io/instance": "${HELM_NAME}-blue"}}}' But when deploying, the following error is shown: Error from server (BadRequest): invalid character 's' looking for beginning…

VIEW QUESTION

Nginx – How to pass environment variables to kubectl create deployment command?

How to pass environment variables to kubectl create deployment command? I'm trying to pass environment variable to kubectl create deployment command with below syntax kubectl create deployment nginx-deployment --replicas=2 --env="HOSTNAME=dev.example.com" --env="KEY=randomkey1456" --env="PORT_NUMBER=5601" --image=nginx It's throwing below error message saying --env…

VIEW QUESTION

Amazon web services – How do I log into ECR to pull images if I can't use docker as a runtime?

One of the steps to log into ECR required to pull and push images is the following, according to AWS (https://docs.aws.amazon.com/AmazonECR/latest/userguide/getting-started-cli.html): aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com However, from starting from Kubernetes v1.24, Docker…

VIEW QUESTION
Back To Top
Search