mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
committed by
Alex Collins
parent
e75a7a5dea
commit
3b71bd05a4
12
examples/known-hosts/README.md
Normal file
12
examples/known-hosts/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# Argo CD ssh_known_hosts file customization
|
||||
|
||||
The directory contains sample kustomize application which customizes `/etc/ssh/ssh_known_hosts` file in Argo CD. This is useful if you want to disable SSL cert validation
|
||||
for Git repositories connected using SSL urls:
|
||||
|
||||
- `argocd-known-hosts-mounts.yaml` - define merge patches which inject `/etc/ssh/ssh_known_hosts` file mount into all Argo CD deployments.
|
||||
- `argocd-known-hosts.yaml` - defines `ConfigMap` which includes `/etc/ssh/ssh_known_hosts` file content.
|
||||
- `kustomization.yaml` - Kustomize application which bundles stable version of Argo CD and apply `argocd-known-hosts-mounts.yaml` patches on top.
|
||||
|
||||
!!! note
|
||||
The `/etc/ssh/ssh_known_hosts` should include Git host on each Argo CD deployment as well as on a computer where `argocd repo add` is executed. After resolving issue
|
||||
[#1514](https://github.com/argoproj/argo-cd/issues/1514) only `argocd-repo-server` deployment has to be customized.
|
||||
54
examples/known-hosts/argocd-known-hosts-mounts.yaml
Normal file
54
examples/known-hosts/argocd-known-hosts-mounts.yaml
Normal file
@@ -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
|
||||
8
examples/known-hosts/argocd-known-hosts.yaml
Normal file
8
examples/known-hosts/argocd-known-hosts.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-known-hosts
|
||||
data:
|
||||
known_hosts: |-
|
||||
<known_hosts file content>
|
||||
11
examples/known-hosts/kustomization.yaml
Normal file
11
examples/known-hosts/kustomization.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
bases:
|
||||
- github.com/argoproj/argo-cd//manifests/cluster-install?ref=stable
|
||||
|
||||
patchesStrategicMerge:
|
||||
- argocd-known-hosts-mounts.yaml
|
||||
|
||||
resources:
|
||||
- argocd-known-hosts.yaml
|
||||
Reference in New Issue
Block a user