Schema Registry on Kubernetes, publicly accesible Schema Registry on Kubernetes, publicly accesible kubernetes kubernetes

Schema Registry on Kubernetes, publicly accesible


I ran into the same problem before and I solved it by using selector/app.

Deployment:apiVersion: extensions/v1beta1kind: Deploymentmetadata:  namespace: ***  name: schema-registry  labels:    app: schema-registryspec:  replicas: 1  selector:    matchLabels:      app: schema-registry  template:    metadata:      labels:        app: schema-registry    spec:      containers:      - name: schema-registry        image: confluentinc/cp-schema-registry:5.3.0        ports:        - containerPort: 8081        imagePullPolicy: Always        env:        - name: SCHEMA_REGISTRY_HOST_NAME          value: schema-registry        - name: SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL          value: ***        - name: SCHEMA_REGISTRY_LISTENERS          value: http://0.0.0.0:8081        command:        - bash        - -c        - unset SCHEMA_REGISTRY_PORT; /etc/confluent/docker/runService:apiVersion: v1kind: Servicemetadata:  annotations:     service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0  name: schema-registry  namespace: ***  labels:    app: schema-registryspec:  selector:    app: schema-registry  ports:  - port: 8081  type: LoadBalancer

Hope it would be helpful!


A simple problem with a firewall rule was the cause of the problem. Service and deployment config was ok.Thanks anyway!