- Ensure you have ArgoCD installed and configured in your Kubernetes cluster. Refer to the ArgoCD documentation for installation instructions.
To set up the NEO4J_AUTH
value, follow these steps:
If your username is neo4j
and your password is mypassword
, the string to be encoded would be neo4j:mypassword
.
Use a tool or command to base64 encode the string. For example, you can use the base64
command in Unix-like systems:
echo -n 'neo4j:mypassword' | base64
This would output the base64 encoded string, which you'll need in the next step.
After obtaining the base64 encoded string, prepend neo4j/
to it.
For example, if the base64 encoded string is bmVvNGo6bXlwYXNzd29yZA==
, then the NEO4J_AUTH
value would be neo4j/bmVvNGo6bXlwYXNzd29yZA==
.
Ensure to replace neo4j
with your actual username and mypassword
with your actual password. Additionally, use the appropriate method to base64 encode the string based on your operating system.
After obtaining the NEO4J_AUTH
value, you can create a Kubernetes Secret to store it. Use the following command:
kubectl create secret generic neo4j-auth \
--namespace=neo4j\
--from-literal=NEO4J_AUTH=neo4j/bmVvNGo6bXlwYXNzd29yZA==
kubectl apply -f https://raw.githubusercontent.com/GBrunelli/neo4j-argocd-cluster-template/master/argocd-apps/neo4j.yaml