https://github.com/debek/docker-registry-k8s-rotatescript
Temporary project
https://github.com/debek/docker-registry-k8s-rotatescript
Last synced: 4 months ago
JSON representation
Temporary project
- Host: GitHub
- URL: https://github.com/debek/docker-registry-k8s-rotatescript
- Owner: debek
- Created: 2021-12-08T09:46:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T11:13:10.000Z (over 2 years ago)
- Last Synced: 2025-10-07T12:32:16.657Z (8 months ago)
- Language: HCL
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## This is my recruitment repo 2021yr.
### What I did?:
Everything is made from scratch.
Terraform setting up env for EKS K8s in AWS and then we are deploying the application for the internal docker registry. Then I wrote a python script for image rotation which you can check in this directory `3-retention-registry`.
## Syntax:
Everywhere I added numbers in files and directories' names because will be easier to read for someone who will check this code.
The code is tested and works.
## How it works:
I used terraform for EKS Deployment. Terraform makes also persistent EBS volume and ingress-Nginx, cert-manager, metrics for hpa from the helm.
After all YAML apply we have a connection in that way: DOMAIN -> LB -> INGRESS (SSL cert-manager) -> Service -> Pods
Garbage collector starting his job at night.
## Deployment process:
Deployment can be more automated but TF was not a task for this project :) I started this job later than at once so I don't have time to improve that for now.
`cd 1-terraform`
`terraform init`
`terraform apply`
`cd 2-kubernetes-deployment`
`Change 2-deployment-docker-registry.yaml, VolumeID: in PersistentVolume`
`Change 4-ingress-with-tls.yaml, Domain name`
`kubectl apply -f .`
## Retention registry (Optional Task):
3-retention-registry directory has its own README file