Skip to content

Commit

Permalink
ci: deploy with helm
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jan 3, 2024
1 parent be0564b commit 2679fed
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,20 @@ jobs:
KUBE: ${{ secrets.KUBE }}
run: .k8s/kubeconfig.sh

- uses: azure/setup-helm@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
id: install

- name: Deploy
run: |
/tmp/kubectl apply -f .k8s/deployment.deploy.yml -f .k8s/service.yaml
/tmp/kubectl -n faster rollout status deployment oteldb otelproxy --timeout=1m
- name: Deploy (Helm)
run: |
helm upgrade --install otel .helm/oteldb --namespace faster --values .k8s/values.yml --set image.tag=${{ env.sha }}
otel:
environment: prod
runs-on: ubuntu-latest
Expand Down
40 changes: 40 additions & 0 deletions .k8s/values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
env:
- name: GOMEMLIMIT
value: "4GiB"
- name: GOMAXPROCS
value: "6"
- name: OTEL_METRICS_EXPORTER
value: "otlp"
- name: OTEL_RESOURCE_ATTRIBUTES
value: "service.name=go-faster.oteldb"
- name: OTEL_LOG_LEVEL
value: "DEBUG"
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: "grpc"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://otel-collector.monitoring.svc.cluster.local:4317"
- name: OTEL_TRACES_EXPORTER
value: "otlp"
- name: OTEL_LOGS_EXPORTER
value: "otlp"
- name: OTELDB_STORAGE
value: ch
- name: CH_DSN
valueFrom:
secretKeyRef:
name: oteldb
key: CH_DSN
- name: PYROSCOPE_ENABLE
value: "true"
- name: PYROSCOPE_URL
value: http://pyroscope.pyroscope.svc.cluster.local:4040
- name: PYROSCOPE_APP_NAME
value: oteldb

resources:
requests:
cpu: "3"
memory: 512Mi
limits:
cpu: "6"
memory: 4Gi

0 comments on commit 2679fed

Please sign in to comment.