Last active
December 9, 2021 10:26
-
-
Save luckylittle/a49d6f55b5e95447997bf8b07d5ed23b to your computer and use it in GitHub Desktop.
Codefresh GitOps Certification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
argocd app create controller \ | |
--project default \ | |
--sync-policy automatic \ | |
--repo https://github.com/codefresh-contrib/gitops-certification-examples \ | |
--path ./secret-app/manifests \ | |
--dest-server https://kubernetes.default.svc \ | |
--dest-namespace kube-system | |
argocd app create 3-apps \ | |
--project default \ | |
--sync-policy automatic \ | |
--repo https://github.com/codefresh-contrib/gitops-certification-examples \ | |
--path ./declarative/multiple-apps \ | |
--dest-server https://kubernetes.default.svc \ | |
--dest-namespace argocd | |
argocd app create helm-gitops-example \ | |
--project default \ | |
--sync-policy automatic \ | |
--repo https://github.com/codefresh-contrib/gitops-certification-examples \ | |
--path ./helm-app/ \ | |
--dest-server https://kubernetes.default.svc \ | |
--dest-namespace default | |
kubectl get deployment | |
argocd app list | |
argocd app get helm-gitops-example | |
argocd app history helm-gitops-example | |
argocd app create kustomize-gitops-example \ | |
--project default \ | |
--sync-policy automatic \ | |
--repo https://github.com/codefresh-contrib/gitops-certification-examples \ | |
--path ./kustomize-app/overlays/staging/ \ | |
--dest-server https://kubernetes.default.svc \ | |
--dest-namespace default | |
argocd app list | |
argocd app get kustomize-gitops-example | |
argocd app history kustomize-gitops-example | |
#P#A#R#T#2################################## | |
argocd app create argo-rollouts-controller \ | |
--project default \ | |
--sync-policy automatic \ | |
--repo https://github.com/codefresh-contrib/gitops-certification-examples \ | |
--path ./argo-rollouts-controller/ \ | |
--dest-server https://kubernetes.default.svc \ | |
--dest-namespace argo-rollouts | |
argocd app create demo \ | |
--project default \ | |
--repo https://github.com/codefresh-contrib/gitops-certification-examples \ | |
--path ./blue-green-app/ \ | |
--dest-server https://kubernetes.default.svc \ | |
--dest-namespace default | |
argocd app sync demo | |
kubectl argo rollouts list rollouts | |
kubectl argo rollouts status simple-rollout | |
kubectl argo rollouts get rollout simple-rollout | |
kubectl argo rollouts set image simple-rollout webserver-simple=docker.io/kostiscodefresh/gitops-canary-app:v2.0 | |
kubectl argo rollouts get rollout simple-rollout | |
kubectl argo rollouts promote simple-rollout | |
kubectl argo rollouts get rollout simple-rollout --watch | |
cat <<EOF | kubectl apply -f - | |
apiVersion: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: canary-demo | |
spec: | |
destination: | |
server: 'https://kubernetes.default.svc' | |
namespace: demo | |
project: default | |
source: | |
repoURL: 'https://github.com/kostis-codefresh/summer-of-k8s-app-manifests' | |
path: ./ | |
targetRevision: HEAD | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment