Skip to content

Commit

Permalink
Swap datasource to proxysql (#121)
Browse files Browse the repository at this point in the history
* Swap datasource to proxysql

* DB_HOST var isn't necessary anymore
  • Loading branch information
cmmarslender authored Dec 5, 2024
1 parent 145384b commit a480160
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
token: ${{ env.VAULT_TOKEN }}
secrets: |
secret/data/${{ matrix.colo.region }}/k8s/k8s-${{ matrix.colo.region }} api_server_url | K8S_API_SERVER_URL;
secret/data/${{ matrix.colo.region }}/mysql/db-info host | DB_HOST;
secret/data/${{ matrix.colo.region }}/mysql/users/grafana-read-pub username | GRAFANA_PUB_READ_USERNAME;
secret/data/${{ matrix.colo.region }}/mysql/users/grafana-read-pub password | GRAFANA_PUB_READ_PASSWORD;
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
token: ${{ env.VAULT_TOKEN }}
secrets: |
secret/data/msp/k8s/k8s-msp api_server_url | K8S_API_SERVER_URL;
secret/data/msp/mysql/db-info host | DB_HOST;
secret/data/msp/mysql/users/grafana-read-pub username | GRAFANA_PUB_READ_USERNAME;
secret/data/msp/mysql/users/grafana-read-pub password | GRAFANA_PUB_READ_PASSWORD;
Expand Down
7 changes: 5 additions & 2 deletions helm/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ networkPolicy:
- Egress
egressRules:
- to:
- ipBlock:
cidr: "{{ DB_HOST }}/32"
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: proxysql
ports:
- protocol: TCP
port: 3306
- protocol: TCP
port: 6033
- to:
- namespaceSelector:
matchLabels:
Expand Down
2 changes: 1 addition & 1 deletion templates/datasources.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ datasources:
editable: False
- name: block-data
type: mysql
url: {{ DB_HOST }}:3306
url: "proxysql-generic.proxysql:3306"
uid: P00A25F4DA48796D5
user: '{{ GRAFANA_PUB_READ_USERNAME }}'
jsonData:
Expand Down

0 comments on commit a480160

Please sign in to comment.