I know how to create the service abstraction that points to an
endpoint to an external database(not within the cluster ip). However, my
mysql service (single host mysql) only permits fix ip for access. The
obvious reason is security.
And, we all know pod will eventually die and get a new ip.
So, how can one fix this?
kind: "Service" apiVersion: "v1" metadata: name: "example-external-service" spec: ports: - name: "mysql" protocol: "TCP" port: 3306 targetPort: 3306 nodePort: 0
kind: "Endpoints" apiVersion: "v1" metadata: name: "example-external-service" subsets: - addresses: - ip: "10.10.1.1" ports: - name: "mysql" port: 3306
--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/e026439c-97f5-44a9-9b55-8ef98c601f2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.