Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cambiando al acr #71

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/SubirChart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,4 +18,4 @@ jobs:
ARM_SUBSCRIPTION_ID: "${{ secrets.ARM_SUBSCRIPTION_ID }}"
with:
MICROSERVICE: "${{ inputs.MICROSERVICE }}"
VERSION_CHART: "${{ inputs.VERSION_CHART }}"

4 changes: 2 additions & 2 deletions .github/workflows/principal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ 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 }}

- 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 }}
Expand Down
23 changes: 23 additions & 0 deletions valuesdev.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions values.yaml → valuesprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ frontend:
service:
port: 80
type: LoadBalancer

ingress:
enabled: true
host: frontend
annotations:
path: /
tls: true
tlsSecretName: example-tls-secret
Loading