OperationCode / OperationCode/operationcode_infra
environment promotion strategy
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- HCL
- Estrellas
- 17
- Forks
- 12
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza revisando las rutas de despliegue de staging y master, el comportamiento de las imágenes de ECS y kubectl, y el proceso de la fuente de datos de RDS descrito en el issue. Haz un inventario de cómo se etiquetan y despliegan actualmente las imágenes de frontend y backend, incluidas las diferentes versiones mostradas. El trabajo se considerará terminado cuando exista una estrategia de promoción acordada y un enfoque definido y repetible para copiar datos de producción a entornos inferiores.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, docker, kubernetes
- Área
- cloud, databases, devops, infrastructure
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 15/100