From c4e16f7758449199d0db612181506d05bd59d3f9 Mon Sep 17 00:00:00 2001 From: ValentinoSanchez00 Date: Tue, 10 Dec 2024 13:06:58 +0100 Subject: [PATCH] cambiando al acr --- .github/workflows/SubirChart.yaml | 5 +---- .github/workflows/principal.yaml | 4 ++-- valuesdev.yaml | 23 +++++++++++++++++++++++ values.yaml => valuesprod.yaml | 8 ++++++++ 4 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 valuesdev.yaml rename values.yaml => valuesprod.yaml (71%) diff --git a/.github/workflows/SubirChart.yaml b/.github/workflows/SubirChart.yaml index 3ba8b19..78df9ff 100644 --- a/.github/workflows/SubirChart.yaml +++ b/.github/workflows/SubirChart.yaml @@ -6,9 +6,6 @@ on: description: 'Nombre del microservicio' required: true default: 'frontend' - VERSION_CHART: - description: 'VersiĆ³n del Chart' - required: true jobs: subirCharts: uses: stemdo-labs/final-project-exercise-ValentinoSanchez00/.github/workflows/SubirCharts.yaml@main @@ -21,4 +18,4 @@ jobs: ARM_SUBSCRIPTION_ID: "${{ secrets.ARM_SUBSCRIPTION_ID }}" with: MICROSERVICE: "${{ inputs.MICROSERVICE }}" - VERSION_CHART: "${{ inputs.VERSION_CHART }}" + diff --git a/.github/workflows/principal.yaml b/.github/workflows/principal.yaml index d52afae..c55a014 100644 --- a/.github/workflows/principal.yaml +++ b/.github/workflows/principal.yaml @@ -124,7 +124,7 @@ jobs: - name: Desempaquetar el chart if: inputs.ENVIROMENT == 'develop' run: | - helm upgrade --install develop ${NAME_CHART}-${VERSION_CHART}.tgz --namespace ns-vsanchez -f values.yaml + helm upgrade --install develop ${NAME_CHART}-${VERSION_CHART}.tgz --namespace ns-vsanchez -f valuesdev.yaml env: NAME_CHART: chart-${{ inputs.MICROSERVICE }} VERSION_CHART: ${{ inputs.VERSION_CHART }} @@ -132,7 +132,7 @@ jobs: - name: Desempaquetar el chart if: inputs.ENVIROMENT == 'production' run: | - helm upgrade --install production ${NAME_CHART}-${VERSION_CHART}.tgz --namespace ns-vsanchez -f values.yaml + helm upgrade --install production ${NAME_CHART}-${VERSION_CHART}.tgz --namespace ns-vsanchez -f valuesprod.yaml env: NAME_CHART: chart-${{ inputs.MICROSERVICE }} VERSION_CHART: ${{ inputs.VERSION_CHART }} diff --git a/valuesdev.yaml b/valuesdev.yaml new file mode 100644 index 0000000..a1f1fa2 --- /dev/null +++ b/valuesdev.yaml @@ -0,0 +1,23 @@ + +frontend: + replicas: 2 + image: containerregistryvsanchez.azurecr.io/imagen-proyecto-frontend:0.1.2 + containerPort: 80 + resources: + requests: + memory: "128Mi" + cpu: "250m" + limits: + memory: "256Mi" + cpu: "500m" + service: + port: 80 + type: LoadBalancer + +ingress: + enabled: false + host: frontend + annotations: + path: / + tls: true + tlsSecretName: example-tls-secret \ No newline at end of file diff --git a/values.yaml b/valuesprod.yaml similarity index 71% rename from values.yaml rename to valuesprod.yaml index 964730f..c1fb71b 100644 --- a/values.yaml +++ b/valuesprod.yaml @@ -13,3 +13,11 @@ frontend: service: port: 80 type: LoadBalancer + +ingress: + enabled: true + host: frontend + annotations: + path: / + tls: true + tlsSecretName: example-tls-secret \ No newline at end of file