Skip to content

Instantly share code, notes, and snippets.

@geekbass
Last active April 8, 2024 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save geekbass/2a986b7cda40a5cf06af1dabe8f36783 to your computer and use it in GitHub Desktop.
Save geekbass/2a986b7cda40a5cf06af1dabe8f36783 to your computer and use it in GitHub Desktop.
Kubernetes on DC/OS Dashboard Proxy
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://apiserver-insecure.kubernetes.l4lb.thisdcos.directory:9000/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/;
sub_filter_types text/html;
sub_filter_once off;
sub_filter '="/' '="/service/kubernetes-dash/';
sub_filter 'var PATH_PREFIX = "";' 'var PATH_PREFIX = "/service/kubernetes-dash";';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment