- a cluster of web machines
- a cluster of db machines and other services
The question is how put in communication the 2 clusters in order to use some hostnames in /etc/hosts of web machines.
To protect your data, is it safe create an ingress service to make visible the db from the external? I tried with a nodePort service (so using internal ip addresses) but I'm not able to put in contact db-web between different clusters
At the moment my temporary solution is:
a) define a public static ip with the command:
gcloud compute addresses create my-public-static-ip --global
b) use an ingress configuration for my db service where I set the static ip with the option:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: my-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: my-public-static-ip
c) in my daemonset.yaml I define a hostAliases:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: my-daemonset
spec:
updateStrategy:
type: RollingUpdate
template:
spec:
nodeSelector:
app: frontend-node
terminationGracePeriodSeconds: 30
hostAliases:
- ip: <public_ip_addr>
hostnames:
- "my-db-service"
and it's working. But I'm not too convinced that this solution is the best or however correct on a live environment...
> To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/d8xJqXYDAZ8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Sorry, not follow the price argument. You are only charged for the nodes you use on a Kubernetes cluster (no Masters, no matter cluster size).
So, I really don't why it makes a difference the number of clusters
in terms of performance, scalability and stability which is the better solution between:
Can't you use an internal load balancer to communicate?
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/d8xJqXYDAZ8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-use...@googlegroups.com.
Sorry, not follow the price argument. You are only charged for the nodes you use on a Kubernetes cluster (no Masters, no matter cluster size).
I don't understand very well "no matter cluster size" whereas no one has ever talked about creating nodes that will not be used later. In my example every node will be used and of course I will be charged the cost, making the cluster size very important to define total spending
So, I really don't why it makes a difference the number of clusterswhat I mean is very simple:
if I have to use a single cluster, the minimum hardware features must be able to bear db requirements.
My db must have 60 GB of RAM.
So every node in this cluster will have 60 gb.
Can't you use an internal load balancer to communicate?
I noticed that if I create a load balancer service or an ingress service, Kubernetes will create a public ip address.
So when you say internal load balancer, what are you referring to?
Because I tried to use a nodeport service to communicate between cluster and didn't work