-
Notifications
You must be signed in to change notification settings - Fork 14
Description
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?