OperationCode / OperationCode/operationcode_infra
environment promotion strategy
Personne n'a encore pris cette issue.
- Langage dominant
- HCL
- Étoiles
- 17
- Forks
- 12
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
pybot/ pyback:
- Work locally in development, can target a test slack
- Push to
stagingbranch, targets a test slack but shows what happens when deployed in ECS. - Push to
master, targets prod
@OperationCode/front-end and current frontend:
- Work locally to target whatever we set in environment variables (staging, prod)
- Create pull request, which on merge promotes the production to this
Backend does the same as front-end, both front-end and backend you can go into kubectl and manually target whatever container tag you'd like. When I request the current images for all pods, we'll see some oddities:
C:\Users\wimo7\Desktop> kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}" | tr [:space:] '\n'
operationcode/operationcode_frontend:latest
operationcode/operationcode_frontend:latest
... supporting containers...
operationcode/operationcode_backend:1245
operationcode/operationcode_backend:latest
operationcode/operationcode_backend:1245
operationcode/operationcode_backend:latest
operationcode/operationcode_frontend:2327
operationcode/operationcode_backend:1269
operationcode/operationcode_backend:1269
operationcode/operationcode_backend:1269
operationcode/operationcode_backend:1269
operationcode/operationcode_frontend:2334
operationcode/operationcode_frontend:2334
bitnami/redis:3.2.9-r2
operationcode/town-crier:latest
In the above case, we see that frontend is using both 2334and latest. while backend is using 1269, 1245 and latest.
I don't know the correct command to list the namespace for each of these. But I remember find out that we are setting staging cube as "latest" and the prod as a numerical value. I don't know why we have 3 different backend image versions.
After talking with @kylemh (IIRC) he doesn't need a way to promote a deployed code instance to staging. For their purposes it's fine to have staging only running locally. But I think going to a strategy where we promote to staging on merge to master, by tags, and then manually promote by adding a production tag would be more ideal, or automatically based on some criteria.
Our initial concern was having k instances of staging for k developers. But I don't see that as a current problem.
Lastly, we need a way that data sources (backend, pyback) RDS instances, have data in production that propagate down so that when we update those instances we can easily carry that over. I think for the time being a nightly copy over, plus ability to manually trigger, would be fine. With the knowledge that if you are working on something that requires database migrations you'll have to perform the migration again with the updated data.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par examiner les chemins de déploiement de staging et master, le comportement des images d’ECS et de kubectl, ainsi que le processus de source de données RDS décrit dans l’issue. Inventoriez la manière dont les images frontend et backend sont actuellement taguées et déployées, y compris les différentes versions affichées. Le travail sera considéré comme terminé lorsqu’une stratégie de promotion convenue et une approche définie et reproductible pour copier les données de production vers des environnements inférieurs seront établies.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, docker, kubernetes
- Domaine
- cloud, databases, devops, infrastructure
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 15/100