diff --git a/argocd/known-host-mounts.yaml b/argocd/known-host-mounts.yaml new file mode 100644 index 0000000..f4937a7 --- /dev/null +++ b/argocd/known-host-mounts.yaml @@ -0,0 +1,54 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: argocd-server +spec: + template: + spec: + containers: + - name: argocd-server + volumeMounts: + - name: known-hosts + mountPath: /etc/ssh/ssh_known_hosts + subPath: known_hosts + volumes: + - name: known-hosts + configMap: + name: argocd-known-hosts +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: argocd-repo-server +spec: + template: + spec: + containers: + - name: argocd-repo-server + volumeMounts: + - name: known-hosts + mountPath: /etc/ssh/ssh_known_hosts + subPath: known_hosts + volumes: + - name: known-hosts + configMap: + name: argocd-known-hosts +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: argocd-application-controller +spec: + template: + spec: + containers: + - name: argocd-application-controller + volumeMounts: + - name: known-hosts + mountPath: /etc/ssh/ssh_known_hosts + subPath: known_hosts + volumes: + - name: known-hosts + configMap: + name: argocd-known-hosts \ No newline at end of file diff --git a/argocd/known-host.yaml b/argocd/known-host.yaml new file mode 100644 index 0000000..6a0dec4 --- /dev/null +++ b/argocd/known-host.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: argocd-known-hosts +data: + known_hosts: |- + gitea.ly-dodo.win ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDPdxCMPZZpJby+BHFPzxzT1OXhio/rz2TjrkX8xZBJQElNezoifdjX6DDVVDOblmMLUgwlO0J8oWPqQlXiJglWVaaeZ3R3UfaQ8aMjdseIWo4JyvA3qfTfVCDOboTII0kvlAoPuiPBhory1ZEhLbcVgujA2A8vIwET1YhylPxfiEFmQ/j3EMT5WzALiLSOmRohDzIUshl4mD8V3mo9MWKrpObvw9YTzGq2aGo+LBxe5yq9fPnjg4eIxhCIg98Hl3hoqIQ30eVwAQo5mJbI/wSV9bIQCAuSPYote7q+Yl+VxcvlpMK4qJ2Y8rciqd/BhcDT9Wkjyg73T923Jvu3oDZlsNztUBu8jXDqjh3HOCcziF1STF4d7xUZKILPYf4ZwxAm4CABjLtj1YoX/o2AiIcYlLoDtSh7Qqky8HOVyKO/svwdLH7wmyisM3m0RBxjsT8ubZ/4LKQ15kz4OlF4/yK/0Fa8B2/L58GTZP+Am/fszR0TsHcLvGfHhOGBFsnpSrlPQpv8DCeCtqK4NYIWVhzd2M499ArfQh0HT28S2gHVzsp2I8l7T64bikS8EZBsolvwXIppZ5YDScR/xnvx38TIM0RfJeAId/zZjiGbgry9sTUYlf/tHJorlvctr1v8mN0NH2wNQeDRQX4IMddcBEglBFD2tp+vpiGDILiMxCfMKQ== \ No newline at end of file diff --git a/argocd/kustomization.yaml b/argocd/kustomization.yaml index a278ec2..de93dcf 100644 --- a/argocd/kustomization.yaml +++ b/argocd/kustomization.yaml @@ -1,3 +1,7 @@ resources: - github.com/argoproj/argo-cd//manifests/cluster-install?ref=stable -- ingress.yaml \ No newline at end of file +- ingress.yaml +- known-hosts.yaml + +patches: +- path: known-hosts-mounts.yaml \ No newline at end of file