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

Rollout-extension installation failed with CRD #76

Open
tppalani opened this issue May 2, 2024 · 18 comments
Open

Rollout-extension installation failed with CRD #76

tppalani opened this issue May 2, 2024 · 18 comments

Comments

@tppalani
Copy link

tppalani commented May 2, 2024

Hi Team,

I have taken the yaml file from this path https://github.com/argoproj-labs/rollout-extension/blob/master/manifests/install.yaml when I'm trying to install yaml its showing install CRD can you please what are CRD need to be install before installing extension can you please share the document pls ?

$ k apply -f install.yaml
error: resource mapping not found for name: "argocd-appset-ext" namespace: "" from "install.yaml": no matches for kind "ArgoCDExtension" in version "argoproj.io/v1alpha1"
ensure CRDs are installed first
@rajendar38
Copy link

Hey , you need to install rollout crd first
kubectl create namespace argo-rollouts
kubectl apply -n argo-rollouts -f https://github.com/argoproj/argo-rollouts/releases/latest/download/install.yaml
Argo CICD and rollouts are different projects

@tppalani
Copy link
Author

tppalani commented May 7, 2024

Hi @rajendar38

Thanks for the reply.

Please find the below installation steps.

kubectl apply -n argo-rollouts -f https://github.com/argoproj/argo-rollouts/releases/latest/download/install.yaml
customresourcedefinition.apiextensions.k8s.io/analysisruns.argoproj.io configured
customresourcedefinition.apiextensions.k8s.io/analysistemplates.argoproj.io configured
customresourcedefinition.apiextensions.k8s.io/clusteranalysistemplates.argoproj.io configured
customresourcedefinition.apiextensions.k8s.io/experiments.argoproj.io configured
customresourcedefinition.apiextensions.k8s.io/rollouts.argoproj.io configured
serviceaccount/argo-rollouts unchanged
clusterrole.rbac.authorization.k8s.io/argo-rollouts unchanged
clusterrole.rbac.authorization.k8s.io/argo-rollouts-aggregate-to-admin unchanged
clusterrole.rbac.authorization.k8s.io/argo-rollouts-aggregate-to-edit unchanged
clusterrole.rbac.authorization.k8s.io/argo-rollouts-aggregate-to-view unchanged
clusterrolebinding.rbac.authorization.k8s.io/argo-rollouts unchanged
configmap/argo-rollouts-config unchanged
secret/argo-rollouts-notification-secret unchanged
service/argo-rollouts-metrics unchanged
deployment.apps/argo-rollouts unchanged

Create argo-rollouts extension in argocd namespace

kubectl apply -n argocd \
    -f https://raw.githubusercontent.com/argoproj-labs/rollout-extension/v0.2.1/manifests/install.yaml
    
    error: error parsing https://github.com/argoproj-labs/rollout-extension/blob/master/manifests/install.yaml: error converting YAML to JSON: yaml: line 211: mapping values are not allowed in this context

@rajendar38
Copy link

deploy it to argo-rollouts name space not argocd

@tppalani
Copy link
Author

tppalani commented May 7, 2024

Hi @rajendar38

$ kubectl apply -n argo-rollouts \
    -f https://raw.githubusercontent.com/argoproj-labs/rollout-extension/v0.2.1/manifests/install.yaml
error: resource mapping not found for name: "argo-rollouts" namespace: "" from "https://raw.githubusercontent.com/argoproj-labs/rollout-extension/v0.2.1/manifests/install.yaml": no matches for kind "ArgoCDExtension" in version "argoproj.io/v1alpha1"
ensure CRDs are installed first

@rajendar38
Copy link

@tppalani
Copy link
Author

tppalani commented May 7, 2024

I have already argocd up and running past 8 days, please refer the below output

$ k get ns argocd
NAME     STATUS   AGE
argocd   Active   8d

AL44469@LDD4C6G3 MINGW64 ~/AWSCLI
$ helm list -n argocd --output json | jq -r '.[].chart'
argo-cd-5.23.1
$ kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/rollout-extension/v0.2.1/manifests/install.yaml
error: resource mapping not found for name: "argo-rollouts" namespace: "" from "https://raw.githubusercontent.com/argoproj-labs/rollout-extension/v0.2.1/manifests/install.yaml": no matches for kind "ArgoCDExtension" in version "argoproj.io/v1alpha1"
ensure CRDs are installed first

@tppalani
Copy link
Author

Hi @rajendar38 can you please give me insights on this that would be really helpful.

@pvogel1967
Copy link

I have the same issue. In all honesty, the install instructions here seem significantly out of date with respect to the ArgoCD project's current state. In particular the ArgoCD extensions installer is no longer a maintained thing (see deprecation notice in the Repo Readme here: https://github.com/argoproj-labs/argocd-extensions) unfortunately, the docs for that seem to have fallen into the trap that ArgoCD mostly avoids among DevOps tools -- of documenting a piece of bark without saying anything about the tree to which it belongs, let alone the forest so it's not real obvious how to get from running ArgoCD + ArgoRollouts to running argoCD + ArgoRollouts + desired extensions.

@tppalani
Copy link
Author

Thanks @pvogel1967 for your feedback

@rajendar38 will you able to help me.

@pvogel1967
Copy link

@tppalani I found this helpful and was able to get it working with the patch contained therein.

#68

@rajendar38 maybe the above should be approved and merged?

@tppalani
Copy link
Author

@rajendar38 our app team always depending on Argo product only please consider this issue as high priority and help us to complete the installation in our actual environment.

@rajendar38
Copy link

@tppalani can you please help me with environment details, I am unable to reproduce it

Create argo-rollouts extension in argocd namespace

Argo CD should be in AgoCD namespace and ArgoRolluts should be in ArgoRollouts namespace
why you are trying to install ArfoRollout into ArgoCD namespace ?
https://argo-rollouts.readthedocs.io/en/stable/#quick-start

@rajendar38
Copy link

it should be something like this
rajendar@Dell-7490:~/vagrant-k8s-cilium$ k get ns
NAME STATUS AGE
argo-rollouts Active 10d
argocd Active 5d19h
cilium-test Active 10d
default Active 10d
hotel Active 9d

@tppalani
Copy link
Author

Hi @rajendar38 Thanks for the help

here the argo details

$ k get ns | grep argo
argo-rollouts                Active   13d
argocd                       Active   13d

@tppalani
Copy link
Author

Hi @rajendar38 let me know if any other details needed from my side

@rajendar38
Copy link

I am able to replicate the Issue ,
Argo Rollout Extension is deprricated notice I can see
https://github.com/argoproj-labs/argocd-extensions?tab=readme-ov-file
The current alternative for installing Argo CD extensions is by defining an init-container in the Argo CD API server using the argocd-extension-installer image provided by the following repo
I havent done this in my local < I need some time to check this

@tppalani
Copy link
Author

tppalani commented May 16, 2024

Hi @rajendar38 Thanks for the update.

I will do research on the same let me know if you have done this extension analysis in your local machine before completing me.

I have see argocd-extension-installer image and deployment details here https://edu.chainguard.dev/chainguard/chainguard-images/reference/argocd-extension-installer/

@tbernacchi
Copy link

tbernacchi commented Nov 1, 2024

@rajendar38 I've followed the steps mentioned here but I got this in the UI:

image

I'm not sure what I'm missing. Have you seen this before?

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

4 participants