📌 This README is bilingual. For the Czech version, scroll down or click here.
This repository contains a case study for a DevOps role, including various questions and answers related to containerization, networking, Kubernetes, GitOps, and infrastructure automation.
⚠ This repository includes repository-specific Git configuration files (git-config
) that reference a specific GitHub account and email address. Before using them, update the values to match your own details.
- Repository Structure
- Case Study Chapter Navigation
- Setting Up the Repository
- License
- Czech Version / Česká verze
devops-case-study/
├── .gitattributes
├── .gitignore
├── git-config
├── setup-hooks.sh
├── hooks/
│ └── post-checkout
├── README.md
├── cz/
├── en/
│ ├── gitops.md
│ ├── kubernetes.md
│ ├── monitoring.md
│ ├── networking.md
│ ├── security.md
To ensure the repository-specific Git configuration is applied automatically, follow these steps:
git clone https://github.com/ILXNAH/devops-case-study.git
cd devops-case-study
Since Git does not track the .git/hooks/
directory, you need to run the following setup script to install the required Git hooks:
./setup-hooks.sh
This script will:
- Copy the
post-checkout
hook from thehooks/
directory to.git/hooks/
. - Ensure the script is executable.
- Apply the repository-specific Git configuration automatically.
Git hooks are scripts that run automatically at specific points in the Git workflow.
In this repository, thepost-checkout
hook ensures that after switching branches or checking out the repository, the correct Git configuration is applied.
⚠ If you use this repository, make sure to update git-config
with your own email and GitHub username before committing any changes.
To confirm that the Git configuration was successfully applied, run:
git config --local --list
You should see a line similar to:
include.path=./git-config
This project is licensed under the MIT License.
Tento repozitář obsahuje případovou studii pro roli DevOps, včetně různých otázek a odpovědí týkajících se kontejnerizace, sítí, Kubernetes, GitOps a automatizace infrastruktury.
⚠ Tento repozitář obsahuje specifické Git konfigurační soubory (git-config
), které odkazují na konkrétní GitHub účet a e-mailovou adresu. Před jejich použitím si hodnoty upravte podle vlastních údajů.
devops-case-study/
├── .gitattributes
├── .gitignore
├── git-config
├── setup-hooks.sh
├── hooks/
│ └── post-checkout
├── README.md
├── cz/
│ ├── bezpečnost.md
│ ├── gitops-cz.md
│ ├── kubernetes-cz.md
│ ├── monitoring-cz.md
│ ├── síťování.md
├── en/
Aby byla automaticky aplikována specifická Git konfigurace pro tento repozitář, postupujte následovně:
git clone https://github.com/ILXNAH/devops-case-study.git
cd devops-case-study
Protože Git standardně nesleduje adresář .git/hooks/
, je nutné spustit následující skript pro instalaci požadovaných Git hooků:
./setup-hooks.sh
Tento skript:
- Zkopíruje hook
post-checkout
ze složkyhooks/
do.git/hooks/
. - Ujistí se, že je skript spustitelný.
- Automaticky aplikuje specifickou konfiguraci Git repozitáře.
Git hooky jsou skripty, které se automaticky spouštějí v určitých fázích Git workflow.
V tomto repozitářipost-checkout
hook zajišťuje, že po přepnutí větve nebo klonování repozitáře bude správně nastavena Git konfigurace.
⚠ Pokud používáte tento repozitář, ujistěte se, že jste v souboru git-config
aktualizovali údaje s vaším vlastním e-mailem a GitHub uživatelským jménem před odesláním změn. Pro ověření, že byla Git konfigurace úspěšně aplikována, spusťte:
git config --local --list
Měl by se zobrazit řádek podobný:
include.path=./git-config
Tento projekt je licencován pod MIT licencí.