Jump to content
Welcome to our new Citrix community!

Support for Type ExternalName Services


Recommended Posts

Hi,

Is there a similar solution for the CIC that supports external backend that are subject for Kubernetes migration?

 

Similar like the NGINX solution  https://github.com/nginxinc/kubernetes-ingress/blob/master/examples/externalname-services/README.md

 

Currently, I can setup a site like this, but ServiceGroup never get populated with members, so the site remains down.

apiVersion: v1
kind: Service
metadata:
  name: my-service
  namespace: default
spec:
  type: ExternalName
  externalName: original-website.example.com
  ports:
  - port: 5001

---
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
  name: my-service
  namespace: default
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt"
    kubernetes.io/ingress.class: "citrix"
spec:
  tls:
  - hosts:
    - adc-website.example.com
    secretName: tls-original-website.example.com
  rules:
  - host: adc-website.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: my-service
            port:
              number: 443

 

 

Thanks

Chris

Link to comment
Share on other sites

It seems that I fail to get this working as well. I managed to get it partly working using port 80 for services and using kind: Endpoint. I guess there's a situation with DNS going on.

Anyway -  my VPX is configured with DNS already.

 

Situation is pretty much the same. Everything gets created but ServiceGroup remains empty.

 

This is my config.

 

apiVersion: v1
kind: Service
metadata:
  name: external-svc
spec:
  selector:
    app: cpx
  ports:
    - protocol: TCP
      port: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: dbs-ingress
  annotations:
    kubernetes.io/ingress.class: "citrixvpx"
    ingress.citrix.com/external-service: '{"external-svc": {"domain": "www.google.com"}}'
spec:
  rules:
    - host: "external.example.com"
      http:
        paths:
          - backend:
              service:
                name: my-external-service
                port:
                  number: 80
            path: /
            pathType: Prefix
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: nameserver-cmap
  namespace: default
data:
  NS_DNS_NAMESERVER: '[8.8.8.8]'

 

Any thoughts? 

 

CIC logs doesn't post errors.

 

Thanks

Christofer

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...