Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcom-tp-etl-transformation-pipelines
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
general
bcom-tp-etl-transformation-pipelines
Commits
fbd15de1
Commit
fbd15de1
authored
Aug 07, 2023
by
Cristian Aguirre
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer-ca' into 'developer'
Update 07-08-23. Update README.md See merge request
!8
parents
0b05fe09
b1423b97
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
11 deletions
+41
-11
README.md
README.md
+30
-0
dag_conf.yml
dags/dag_conf.yml
+9
-9
airflow-envvars-configmap.yaml
deploy-k8/airflow-envvars-configmap.yaml
+2
-2
No files found.
README.md
View file @
fbd15de1
...
@@ -488,3 +488,33 @@ Deberá mostrarse algo similar a esto:
...
@@ -488,3 +488,33 @@ Deberá mostrarse algo similar a esto:


## Cargar una imagen contenerizada a Container Registry de GCP
1.
- En nuestro terminal validar y/o setear el nombre del proyecto en el cual desplegamos nuestro
clúster sobre GKE (
**
Esto es importante dado que el clúster creado buscará las imágenes que solo están
en el mismo proyecto que él
**). Seteamos el proyecto con el comando (**
Si pide loguearnos, lo realizamos
con nuestras credenciales de Google
**
):
```
shell
gcloud config
set
project <project-ID>
```
2.
- Una vez que tenemos identificado que imagen vamos a subir al registry, creamos un tag que hace
referencia a la imagen que se subirá:
```
shell
docker tag <imagen-local> gcr.io/<nombre-proyecto>/<nombre-repositorio>:<tag-imagen>
```
3.
- Luego del tag, se procede a realizar el push al registry. Si en caso nos sale un error,
se ejecuta el comando _configure-docker_ y nuevamente el push:
```
shell
docker push gcr.io/<nombre-proyecto>/<nombre-repositorio>:<tag-imagen>
# En caso de error se ejecuta:
gcloud auth configure-docker
# Y nuevamente el push
docker push gcr.io/<nombre-proyecto>/<nombre-repositorio>:<tag-imagen>
```
\ No newline at end of file
dags/dag_conf.yml
View file @
fbd15de1
...
@@ -31,13 +31,13 @@ app:
...
@@ -31,13 +31,13 @@ app:
cloud_provider
:
aws
cloud_provider
:
aws
scripts
:
scripts
:
s3_params
:
s3_params
:
bucket
:
prueba
irflow
bucket
:
prueba
1234568
prefix
:
bcom_scripts
prefix
:
bcom_scripts
connection_id
:
prueba_af
connection_id
:
conn_script
control
:
control
:
s3_params
:
s3_params
:
connection_id
:
prueba_af
connection_id
:
conn_script
bucket
:
prueba
irflow
bucket
:
prueba
1234568
prefix
:
bcom_control
prefix
:
bcom_control
filename
:
control_<period>.json
filename
:
control_<period>.json
timezone
:
'
GMT-5'
timezone
:
'
GMT-5'
...
@@ -48,15 +48,15 @@ app:
...
@@ -48,15 +48,15 @@ app:
delimiter
:
'
|'
delimiter
:
'
|'
tmp_path
:
/tmp
tmp_path
:
/tmp
s3_params
:
s3_params
:
bucket
:
prueba
irflow
bucket
:
prueba
1234568
prefix
:
bcom_results
prefix
:
bcom_results
connection_id
:
prueba_af
connection_id
:
conn_script
report
:
report
:
s3_params
:
s3_params
:
bucket
:
prueba
irflow
bucket
:
prueba
1234568
prefix
:
bcom_report
prefix
:
bcom_report
connection_id
:
prueba_af
connection_id
:
conn_script
filename
:
report_<datetime>.xlsx
filename
:
report_<datetime>.xlsx
datetime_pattern
:
'
%Y-%m-%d
%H:%M:%S'
datetime_pattern
:
'
%Y-%m-%d
%H:%M:%S'
procedure
:
procedure
:
filepath
:
"
procedure_prueba.json"
filepath
:
"
/opt/airflow/dags/procedure_definition.json"
\ No newline at end of file
\ No newline at end of file
deploy-k8/airflow-envvars-configmap.yaml
View file @
fbd15de1
...
@@ -79,8 +79,8 @@ data:
...
@@ -79,8 +79,8 @@ data:
AIRFLOW__LOGGING__LOGGING_LEVEL
:
INFO
AIRFLOW__LOGGING__LOGGING_LEVEL
:
INFO
AIRFLOW__WEBSERVER__DEFAULT_UI_TIMEZONE
:
America/Lima
AIRFLOW__WEBSERVER__DEFAULT_UI_TIMEZONE
:
America/Lima
AIRFLOW__CORE__DEFAULT_TIMEZONE
:
America/Lima
AIRFLOW__CORE__DEFAULT_TIMEZONE
:
America/Lima
AIRFLOW__KUBERNETES__WORKER_CONTAINER_REPOSITORY
:
cristianfernando/airflow_custom
AIRFLOW__KUBERNETES__WORKER_CONTAINER_REPOSITORY
:
gcr.io/byteboth/bcom-airflow
AIRFLOW__KUBERNETES__WORKER_CONTAINER_TAG
:
"
0.0.
6
"
AIRFLOW__KUBERNETES__WORKER_CONTAINER_TAG
:
"
0.0.
1
"
AIRFLOW__KUBERNETES__LOGS_VOLUME_CLAIM
:
airflow-logs-pvc
AIRFLOW__KUBERNETES__LOGS_VOLUME_CLAIM
:
airflow-logs-pvc
AIRFLOW__KUBERNETES__ENV_FROM_CONFIGMAP_REF
:
airflow-envvars-configmap
AIRFLOW__KUBERNETES__ENV_FROM_CONFIGMAP_REF
:
airflow-envvars-configmap
AIRFLOW__KUBERNETES_EXECUTOR__POD_TEMPLATE_FILE
:
/opt/airflow/templates/pod_template.yaml
AIRFLOW__KUBERNETES_EXECUTOR__POD_TEMPLATE_FILE
:
/opt/airflow/templates/pod_template.yaml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment