-
Notifications
You must be signed in to change notification settings - Fork 85
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
Problems running in openshift + gitops operator (ArgoCD) #227
Comments
🤖 Hej @aladrocMatiner! Glad to see you back here. How have you been? The error message you're seeing suggests that Argo CD is unable to use the KSOPS plugin because external plugins are disabled. This is likely due to the fact that Argo CD, by default, disables the use of external plugins for security reasons. To resolve this issue, you need to enable the use of external plugins in Argo CD. This can be done by setting the Here is an example of how you can set this environment variable in a Kubernetes deployment: apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-server
namespace: argocd
spec:
template:
spec:
containers:
- name: argocd-server
env:
- name: ARGOCD_KUSTOMIZE_BUILD_OPTIONS
value: --enable_alpha_plugins After making this change, you should be able to use the KSOPS plugin with Argo CD. The KSOPS plugin is integrated with Argo CD in the KSOPS codebase in three ways:
You can find more details about these methods in the KSOPS README. I hope this helps! If you have any other questions, feel free to ask. Best, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
If i run the command from inside the container i get this:
|
noticed that the changes on argocd-cm are not persisting:
|
managed to get buildOptions working by modifiying the argocd object: https://argocd-operator.readthedocs.io/en/latest/reference/argocd/#kustomize-build-options
Now I get another error:
|
Now trying to mount the private key to be available in the container but unsure how to find the correct path.
|
seems gpg is not installed in the container so that might be the reason all this is not working. The funny part is that the tutorial does not mention nothinf like this and the container build neigther... perhaps Im doing something that i not suppose to or overcomplicating the situation? |
Documentation is pretty broken.... took a while to figure this out...
Create a secret with the gpg keys and put it on the namespace openshift-gitops
Add all this things to your openshift gitops operator ( oc edit argocd). Not specially happy having to import a 3rd party container for the initContainer to use gpg... I hope viaduct include gpg to their container to be able to use it.
I will prepare a guide to install on openshift and do a merge request later in the week or weekend for any questions contact me at [email protected] |
just to mention aswell the logs of the initPod "install-ksops" are not looking that good
|
btw, a colegue told made a blaster comment instead of using the image "stevenctimm/gpgridvanilla" that includes gpg u can use the ubi-9 images since ubis use gpg already for the package management so they have it on their "DNA" |
Hej, Im testing this repo on argo cd following the tutorial using openshift. For this I use a mix of this redhat article:
https://www.redhat.com/en/blog/a-guide-to-gitops-and-secret-management-with-argocd-operator-and-sops
and the repo i generated.
https://github.com/aladrocMatiner/poc-ksops-01
I modify as the readme says the repo argocd object on the gitops operator:
And i can go to the container openshift-gitops-repo-server and I have there ksops and kustomize as it should be
Then I configure argocd with my project...
and I get this message
if i run the command locally it works:
So i wonder what is wrong on the setup
The text was updated successfully, but these errors were encountered: