Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Blue Green deployment with Argo rollouts #2

Open
hprshayan opened this issue Jan 11, 2023 · 0 comments
Open

Error in Blue Green deployment with Argo rollouts #2

hprshayan opened this issue Jan 11, 2023 · 0 comments

Comments

@hprshayan
Copy link

I get error when running the code with minikube. Here is my log:

cd /tmp
git clone https://github.com/codefresh-contrib/argo-rollout-blue-green-sample-app.git
Cloning into 'argo-rollout-blue-green-sample-app'...
cd argo-rollout-blue-green-sample-app/
minikube start

  • minikube v1.25.2 on Ubuntu 20.04
  • Using the virtualbox driver based on user configuration
  • Starting control plane node minikube in cluster minikube
  • Creating virtualbox VM (CPUs=2, Memory=2200MB, Disk=20000MB) ...
  • Preparing Kubernetes v1.23.3 on Docker 20.10.12 ...
    • kubelet.housekeeping-interval=5m
    • Generating certificates and keys ...
    • Booting up control plane ...
    • Configuring RBAC rules ...
    • Using image gcr.io/k8s-minikube/storage-provisioner:v5
  • Enabled addons: storage-provisioner, default-storageclass
    ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ │
    │ You have selected "virtualbox" driver, but there are better options ! │
    │ For better performance and support consider using a different driver: │
    │ - kvm2 │
    │ │
    │ To turn off this warning run: │
    │ │
    │ $ minikube config set WantVirtualBoxDriverWarning false │
    │ │
    │ │
    │ To learn more about on minikube drivers checkout https://minikube.sigs.k8s.io/docs/drivers/ │
    │ To see benchmarks checkout https://minikube.sigs.k8s.io/docs/benchmarks/cpuusage/ │
    │ │
    ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯
  • Verifying Kubernetes components...
  • kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'
  • Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
    kubectl create namespace argo-rollouts
    namespace/argo-rollouts created
    kubectl apply -n argo-rollouts -f https://raw.githubusercontent.com/argoproj/argo-rollouts/stable/manifests/install.yaml
    customresourcedefinition.apiextensions.k8s.io/analysisruns.argoproj.io created
    customresourcedefinition.apiextensions.k8s.io/analysistemplates.argoproj.io created
    customresourcedefinition.apiextensions.k8s.io/clusteranalysistemplates.argoproj.io created
    customresourcedefinition.apiextensions.k8s.io/experiments.argoproj.io created
    customresourcedefinition.apiextensions.k8s.io/rollouts.argoproj.io created
    serviceaccount/argo-rollouts created
    clusterrole.rbac.authorization.k8s.io/argo-rollouts created
    clusterrole.rbac.authorization.k8s.io/argo-rollouts-aggregate-to-admin created
    clusterrole.rbac.authorization.k8s.io/argo-rollouts-aggregate-to-edit created
    clusterrole.rbac.authorization.k8s.io/argo-rollouts-aggregate-to-view created
    clusterrolebinding.rbac.authorization.k8s.io/argo-rollouts created
    secret/argo-rollouts-notification-secret created
    service/argo-rollouts-metrics created
    deployment.apps/argo-rollouts created
    kubectl create ns blue-green
    namespace/blue-green created
    kubectl apply -f ./blue-green-manual-approval -n blue-green
    rollout.argoproj.io/spring-sample-app-deployment created
    service/rollout-bluegreen-preview created
    service/rollout-bluegreen-active created
    error: error validating "blue-green-manual-approval/codefresh.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false
    kubectl argo rollouts get rollout spring-sample-app-deployment --watch -n blue-green
    Error: flags cannot be placed before plugin name: --cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant