#!/bin/sh
set -o errexit
set -o nounset
# create ssh key secret for argocd's git credentials (add .pub to git server)
ssh-keygen -N '' -C 'argocd' -f ./argocd-key
oc create secret generic gitssh -n openshift-gitops --from-file=sshPrivateKey=argocd-key
oc label secret gitssh argocd.argoproj.io/secret-type=repo-creds
# get git servers host keys (add to ArgoCD-patch's initialSSHKnownHosts.keys)
ssh-keyscan -p PORT example.com > known_hosts
# create
oc apply -k components/argocd-cluster/overlays/default
-
Notifications
You must be signed in to change notification settings - Fork 0
linjan2/cluster-config
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
OpenShift cluster bootstrap with ArgoCD GitOps