We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tequila provides the ability to configure ngnix to exclude defined paths when basic auth is enabled. We need something like this in django-k8s.
The solution below uses an additional ingress controller to allow in the traffic
AC:
The additional ingress controller configured with a list of ignore_paths
ignore_paths
--- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: "ingress-{{ container["name"] }}-htpasswd-ignore-paths" namespace: "{{ k8s_namespace }}" annotations: kubernetes.io/ingress.class: nginx nginx.org/mergeable-ingress-type: minion nginx.ingress.kubernetes.io/backend-protocol: "{{ container["protocol"] }}" nginx.ingress.kubernetes.io/auth-type: "" {% for key, value in container["ingress_annotations"].items() %} {{ key }}: "{{ value }}" {% endfor %} {% if k8s_container_htpasswd_ignore_paths | length > 0 %} spec: rules: {% for domain in k8s_domain_names %} - host: "{{ domain }}" http: paths: {% for ingress_path in k8s_container_htpasswd_ignore_paths %} - path: "{{ ingress_path }}" backend: serviceName: "{{ container["name"] }}" servicePort: {{ container["port"] }}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tequila provides the ability to configure ngnix to exclude defined paths when basic auth is enabled. We need something like this in django-k8s.
The solution below uses an additional ingress controller to allow in the traffic
AC:
The additional ingress controller configured with a list of
ignore_paths
The text was updated successfully, but these errors were encountered: