Skip to content

Commit

Permalink
PWX-36817_PWX-32899_r2_master: Fixing .svc.cluster.local DNS domain (#…
Browse files Browse the repository at this point in the history
…1575)

* note, fixing the remaining use of .svc.cluster.local DNS domain in the GUI plugin
* note: the tests are still creating mock host-entries with .svc.cluster.local DNS domain in the `/etc/hosts` files -- but this should be OK

Co-authored-by: Nikita Bhatia <nbhatia@purestorage.com>
  • Loading branch information
zoxpx and nikita-bhatia authored Jun 20, 2024
1 parent fc55066 commit 82b23dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/storage/portworx/component/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,18 @@ func updateDataIfNginxConfigMap(cm *v1.ConfigMap, storageNs string) {
http {
server {
listen 8080;
server_name px-plugin-proxy.` + storageNs + `.svc.cluster.local;
server_name px-plugin-proxy.` + storageNs + `;
location / {
proxy_pass http://portworx-api.` + storageNs + `.svc.cluster.local:9021;
proxy_pass http://portworx-api.` + storageNs + `:9021;
}
}
server {
listen 8443 ssl;
server_name px-plugin-proxy.` + storageNs + `.svc.cluster.local;
server_name px-plugin-proxy.` + storageNs + `;
ssl_certificate /etc/nginx/certs/tls.crt;
ssl_certificate_key /etc/nginx/certs/tls.key;
location / {
proxy_pass http://portworx-api.` + storageNs + `.svc.cluster.local:9021;
proxy_pass http://portworx-api.` + storageNs + `:9021;
}
}
}`,
Expand Down

0 comments on commit 82b23dd

Please sign in to comment.