Skip to content

Commit 6064af3

Browse files
committed
update helm charts
1 parent f99735f commit 6064af3

2 files changed

Lines changed: 29 additions & 9 deletions

File tree

.github/workflows/staging.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
name: Deploy (Staging)
7474

7575
needs:
76-
- Build
76+
- build
7777

7878
runs-on: ubuntu-latest
7979
env:
@@ -92,28 +92,29 @@ jobs:
9292
uses: google-github-actions/auth@v0
9393
with:
9494
credentials_json: ${{ secrets.CREDENTIALS_JSON }}
95-
95+
9696
- name: Install (Gcloud)
9797
uses: google-github-actions/setup-gcloud@v1
9898
with:
9999
project_id: crane-cloud-274413
100100
install_components: "gke-gcloud-auth-plugin"
101-
101+
102102
- name: Login (Kubernetes Cluster)
103103
uses: google-github-actions/get-gke-credentials@v1
104104
with:
105105
cluster_name: staging-cluster
106106
location: us-central1-a
107107
project_id: crane-cloud-274413
108-
109-
# - name: Add Repo (cranecloud)
110-
# run: |
111-
# helm repo add cranecloud https://crane-cloud.github.io/helm-charts/
112108

109+
- name: Add Repo (cranecloud)
110+
run: |
111+
helm repo add cranecloud https://crane-cloud.github.io/helm-charts/
112+
113+
# monitoring-api ./helm/chart \
113114
- name: Helm Release
114115
run: |
115116
helm upgrade --install --create-namespace \
116-
monitoring-api ./helm/chart \
117+
monitoring-api cranecloud/cranecloud \
117118
--values helm/values.staging.yaml \
118119
--namespace $namespace \
119120
--set image.tag="${{ needs.build.outputs.tag }}" \

helm/values.staging.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@ image:
66
tag: ${{ DOCKER_IMAGE_TAG }}
77

88
nameOverride: "monitoring-api"
9-
fullnameOverride: ""
109

10+
nginxConf:
11+
server {
12+
listen 80;
13+
server_name localhost;
14+
15+
location / {
16+
proxy_pass http://localhost:5000/;
17+
proxy_set_header Host "localhost";
18+
}
19+
}
20+
21+
service:
22+
type: NodePort
23+
port: 80
1124

1225
environment:
1326
DATABASE_URI: ${{ DATABASE_URL }}
@@ -19,3 +32,9 @@ environment:
1932
FLASK_ENV: production
2033
LOGGER_APP_URL: ${{ LOGGER_APP_URL }}
2134
PRODUCT_BASE_URL: ${{PRODUCT_BASE_URL}}
35+
36+
celery:
37+
create: false
38+
39+
redis:
40+
create: false

0 commit comments

Comments
 (0)