Created
September 4, 2021 22:10
-
-
Save vfarcic/e890496d32f828276cebb747a8ac73f2 to your computer and use it in GitHub Desktop.
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
#################################### | |
# Koncrete # | |
# GitOps As A Service With Argo CD # | |
# https://youtu.be/F2EdxLMQsCw # | |
#################################### | |
# Referenced videos: | |
# - Argo Project playlist: https://www.youtube.com/playlist?list=PLyicRj904Z9_dGuNs6AN5Khljjn9ssbQ6 | |
# - GitHub CLI - How to manage repositories more efficiently: https://youtu.be/BII6ZY2Rnlc | |
# - What Is GitOps And Why Do We Want It?: https://youtu.be/qwyRJlmG5ew | |
# - Software Versioning Explained - Semantic (SemVer), Calendar (CalVer), etc.: https://youtu.be/xvPiZyx0cDc | |
######### | |
# Setup # | |
######### | |
# Create a Kubernetes cluster with an Ingress (e.g., NGINX Ingress) | |
# Watch https://youtu.be/BII6ZY2Rnlc if you are not familiar with GitHub CLI | |
gh repo fork vfarcic/1-koncrete-demo \ | |
--clone | |
cd 1-koncrete-demo | |
# Replace `[...]` with your Docker Hub user | |
export DH_USER=[...] | |
cat k8s/deployment.yaml \ | |
| sed -e "s@image: .*@image: $DH_USER/devops-toolkit:1.0.0@g" \ | |
| tee k8s/deployment.yaml | |
docker image build \ | |
--tag $DH_USER/devops-toolkit:1.0.0 \ | |
. | |
docker image push \ | |
$DH_USER/devops-toolkit:1.0.1 | |
git add . | |
git commit -m "Only for me" | |
git push | |
####################### | |
# Setting Up Koncrete # | |
####################### | |
echo https://app.koncrete.dev | |
# Open it in a browser | |
######################### | |
# Argo CD Image Updater # | |
######################### | |
docker image build \ | |
--tag $DH_USER/devops-toolkit:1.0.2 \ | |
. | |
docker image push \ | |
$DH_USER/devops-toolkit:1.0.2 | |
########### | |
# Destroy # | |
########### | |
# Destroy the Kubernetes cluster |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment