Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update config to remove need for multiple Ingress objects #236

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jacekn
Copy link
Contributor

@jacekn jacekn commented Jan 30, 2025

This code removes supercluster deployed Ingress and it modified the code to allow the SimplePayment mission to pass with a catch-all nginx proxy.
Proxy config I used is:

server {
  listen 80 default_server;
  server_name _;
  resolver 10.96.0.10 ipv6=off;
  location ~ ^/(.+)-([0-9]+)/core$ {
    proxy_pass http://$1-$2.$1.stellar-supercluster.svc.cluster.local:11626/;
  }
  location ~ ^/(.+)-([0-9]+)/core/(.*)$ {
    proxy_pass http://$1-$2.$1.stellar-supercluster.svc.cluster.local:11626/$3$is_args$args;
  }

  location ~ ^/(.+)-([0-9]+)/history$ {
    proxy_pass http://$1-$2.$1.stellar-supercluster.svc.cluster.local:80/;
  }
  location ~ ^/(.+)-([0-9]+)/history/(.*)$ {
    proxy_pass http://$1-$2.$1.stellar-supercluster.svc.cluster.local:80/$3;
  }
}

To allow me to target pods directly I had to modify serviceName in the StatefulSet

This code removes supercluster deployed Ingress and it modified
the code to allow the `SimplePayment` mission to pass with
a catch-all nginx proxy.
Proxy config I used is:
```
server {
  listen 80 default_server;
  server_name _;
  resolver 10.96.0.10 ipv6=off;
  location ~ ^/(.+)-([0-9]+)/core$ {
    proxy_pass http://$1-$2.$1.stellar-supercluster.svc.cluster.local:11626/;
  }
  location ~ ^/(.+)-([0-9]+)/core/(.*)$ {
    proxy_pass http://$1-$2.$1.stellar-supercluster.svc.cluster.local:11626/$3$is_args$args;
  }

  location ~ ^/(.+)-([0-9]+)/history$ {
    proxy_pass http://$1-$2.$1.stellar-supercluster.svc.cluster.local:80/;
  }
  location ~ ^/(.+)-([0-9]+)/history/(.*)$ {
    proxy_pass http://$1-$2.$1.stellar-supercluster.svc.cluster.local:80/$3;
  }
}
```

To allow me to target pods directly I had to modify serviceName in the StatefulSet
@jayz22 jayz22 self-requested a review February 7, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant