- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
sas viya deployment using Kubernetes command getting error while performing step no 5 As an administrator with namespace permissions, run: "kubectl apply --selector="sas.com/admin=namespace" -f site.yaml --prune"
Following sas deployment doc : SAS Help Center: Deploy the Software any suggestion to get it resolved
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I did search a bit more, and I understand now the situation:
pathType: Prefix
is intended for paths that only need to match prefixes without regex, so it won't support complex patterns like(/|$)(.*)
.pathType: ImplementationSpecific
allows NGINX to handle the path matching as it sees fit, which includes the ability to use regex patterns.
To fix this, change the pathType
for this Ingress path to ImplementationSpecific
:
-
Edit your Ingress resource configuration.
-
Locate the
pathType
for/types(/|$)(.*)
. -
E.g. Adapt it to
ImplementationSpecific
:
paths: - path: /types(/|$)(.*) pathType: ImplementationSpecific backend: service: name: your-service-name port: number: 80
This being said, this is not documented by SAS, it is Kubernetes specific. Therefore chances are that it might not be supported by SAS officially. What scripts are you using, the IaC/Deployment scripts? In that case you should reach out to the creators via the GitHub projects. Else, you probably should reach out to SAS Technical Support, to get a supported version of the fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It seems to me as one of your config files needs an update
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I did search a bit more, and I understand now the situation:
pathType: Prefix
is intended for paths that only need to match prefixes without regex, so it won't support complex patterns like(/|$)(.*)
.pathType: ImplementationSpecific
allows NGINX to handle the path matching as it sees fit, which includes the ability to use regex patterns.
To fix this, change the pathType
for this Ingress path to ImplementationSpecific
:
-
Edit your Ingress resource configuration.
-
Locate the
pathType
for/types(/|$)(.*)
. -
E.g. Adapt it to
ImplementationSpecific
:
paths: - path: /types(/|$)(.*) pathType: ImplementationSpecific backend: service: name: your-service-name port: number: 80
This being said, this is not documented by SAS, it is Kubernetes specific. Therefore chances are that it might not be supported by SAS officially. What scripts are you using, the IaC/Deployment scripts? In that case you should reach out to the creators via the GitHub projects. Else, you probably should reach out to SAS Technical Support, to get a supported version of the fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
This error (previously a warning) is coming from ingress-nginx's strict-validate-path-type option.
Options for resolution here I think would be to:
- Downgrade ingress-nginx to an earlier version (I think this changed from a warning to an error at 1.12)
- Set the strict-validate-path-type option to false
- Write and apply a patchTransformer to update the pathType to implementationSpecific for all ingresses making use of regular expressions.
Greg Wootton | Principal Systems Technical Support Engineer