0

I enabled a service topology in k8s, but when I create the following service the request is not redirected to local pod:

apiVersion: v1
kind: Service
metadata:
  name: nginx
spec:
  selector:
    app: nginx
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80
  topologyKeys:
    - "kubernetes.io/hostname"
Clarencio
  • 173
  • 2
  • 8

0 Answers0