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

can't create Ingress #123

Open
CoolYJCK opened this issue Dec 1, 2020 · 0 comments
Open

can't create Ingress #123

CoolYJCK opened this issue Dec 1, 2020 · 0 comments

Comments

@CoolYJCK
Copy link

CoolYJCK commented Dec 1, 2020

Hi, I'm using this to connect a k8s cluster, cloudify version: premium 5.0.5, kubernetes 1.12.6, cloudify-kubernetes-plugin 2.6.5 or 2.7.0.
And I want to create a Ingress, but get an error like this:

rackback:
...
File ".../cloudify_kubernetes/decorators.py", line 271, in wrapper causes=[error_traceback]
RecoverableError: Operation execution failed. Exception during Kubernetes API call: (404) Reason: Not Found HTTP response headers: HTTPHeaderDict({'Date': 'XXX', 'Content-Length': '174', 'Content-Type': 'application/json'}) HTTP response body: {"kind": "Status", "apiVersion": "v1", "metadata": {}, "status": "Failure", "message": "the server could not find the requested resource", "reason": "NotFound", "details": {}, "code":404}

my blueprint is very simple below:

node_templates:
app_ingress:
type: cloudify.kubernetes.resources.BlueprintDefinedResource
properties:
definition:
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: { concat: [{ get_input: app_name }, '-ingress'] }
labels:
app: { get_input: app_name }
manager: cloudify
spec:
rules:
- host: { get_input: endpoint }
http:
paths:
- path: /
backend:
serviceName: { get_property: [app_svc, definition, metadata, name] }
servicePort: 80
options:
namespace: { get_input: namespace }
relationships:
- type: cloudify.relationships.connected_to
target: app_svc

While I can create other resources like deployment, service, pod successfully.

What's the reason about the error? How to resolve it?

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

No branches or pull requests

1 participant