You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| charts | 3 years ago | |
| fruits-chart | 3 years ago | |
| infrastructure | 3 years ago | |
| .gitignore | 3 years ago | |
| README.md | 3 years ago | |
| infrastructure.yaml.sample | 3 years ago | |
README.md
GitOps Artefacts for the MAD Roadshow France 2023
Deploy OpenShift resources with OpenShift GitOps
-
Install the OpenShift GitOps operator.
-
Fix the ArgoCD ingress route in order to use the router default TLS certificate.
oc patch argocd openshift-gitops -n openshift-gitops -p '{"spec":{"server":{"insecure":true,"route":{"enabled": true,"tls":{"termination":"edge","insecureEdgeTerminationPolicy":"Redirect"}}}}}' --type=merge
- Get the Webhook URL of your OpenShift Gitops installation
oc get route -n openshift-gitops openshift-gitops-server -o jsonpath='https://{.spec.host}/api/webhook'
-
Add a webhook to your GitHub/GitLab repo
- Payload URL: url above
- Content-Type: Application/json
-
Give cluster-admin access rights to the OpenShift Gitops operator.
oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller
cp infrastructure.yaml.sample infrastructure.yaml
oc apply -f infrastructure.yaml -n openshift-gitops
Create the Helm repository
sudo dnf install awscli2 rclone
aws configure
aws s3api list-buckets --output text
aws s3api create-bucket --bucket mad-roadshow-france-2023-helm-charts --create-bucket-configuration LocationConstraint=eu-west-3 --region eu-west-3
aws s3api put-public-access-block --bucket "mad-roadshow-france-2023-helm-charts" --public-access-block-configuration "BlockPublicPolicy=false"
aws s3api put-bucket-policy --bucket mad-roadshow-france-2023-helm-charts --policy '{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::mad-roadshow-france-2023-helm-charts/*"
]
}
]
}'
rclone config
rclone ls aws:mad-roadshow-france-2023-helm-charts
mkdir -p /tmp/mad-roadshow-france-2023-helm-charts
helm package -d /tmp/mad-roadshow-france-2023-helm-charts fruits-chart
helm repo index --url "https://mad-roadshow-france-2023-helm-charts.s3.eu-west-3.amazonaws.com/" "/tmp/mad-roadshow-france-2023-helm-charts"
rclone sync --delete-after /tmp/mad-roadshow-france-2023-helm-charts aws:mad-roadshow-france-2023-helm-charts
rclone ls aws:mad-roadshow-france-2023-helm-charts
curl https://mad-roadshow-france-2023-helm-charts.s3.eu-west-3.amazonaws.com/index.yaml