@tsi
After further investigation I found the following error-message in the xp-operator logs:
2023-01-21 09:09:50,428 ERROR io.fab.kub.cli.inf.cac.SharedProcessor - Failed invoking [email protected] event handler:
Failure executing: GET at: https://10.96.0.1/apis/networking.k8s.io/v1beta1/namespaces/my-namespace/ingresses/my-domain-com.
Message: the server could not find the requested resource.
Received status: Status(apiVersion=v1, code=404, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=the server could not find the requested resource, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=NotFound, status=Failure, additionalProperties={}).: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://10.96.0.1/apis/networking.k8s.io/v1beta1/namespaces/my-namespace/ingresses/my-domain-com. Message: the server could not find the requested resource. Received status: Status(apiVersion=v1, code=404, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=the server could not find the requested resource, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=NotFound, status=Failure, additionalProperties={}).
So tit seems, there is an issue with the ingress-configuration:
# Expose XP through an ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-domain-com
namespace: my-namespace
annotations:
enonic.cloud/xp7.vhost.mapping.my-mapping-site.source: /
enonic.cloud/xp7.vhost.mapping.my-mapping-site.target: /site/default/master/homepage
enonic.cloud/xp7.vhost.mapping.my-mapping-admin.source: /admin
enonic.cloud/xp7.vhost.mapping.my-mapping-admin.target: /admin
enonic.cloud/xp7.vhost.mapping.my-mapping-admin.idproviders: system
spec:
ingressClassName: nginx
rules:
- host: localhost
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: main
port:
number: 8080
- path: /admin
pathType: ImplementationSpecific
backend:
service:
name: main
port:
number: 8080
I am using the following ingress-controller: Installation Guide - NGINX Ingress Controller
I used the following command to install the controller:
helm upgrade --install ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace ingress-nginx --create-namespace