nginx-cluster | A horizontally scalable NGINX caching cluster | Caching library
kandi X-RAY | nginx-cluster Summary
kandi X-RAY | nginx-cluster Summary
A horizontally scalable NGINX caching cluster
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nginx-cluster
nginx-cluster Key Features
nginx-cluster Examples and Code Snippets
Community Discussions
Trending Discussions on nginx-cluster
QUESTION
I would like to do two things with MicroK8s:
- Route the host machine (Ubuntu 18.04) ports 80/443 to Microk8s
- Use something like the simple ingress defined in the kubernetes.io docs
My end goal is to create a single node Kubernetes cluster that sits on the Ubuntu host, then using ingress to route different domains to their respective pods inside the service.
I've been attempting to do this with Microk8s for the past couple of days but can't wrap my head around it.
The best I've gotten so far is using MetalLB to create a load balancer. But this required me to use a free IP address available on my local network rather than the host machines IP address.
I've also enabled the
default-http-backend
and attempted to export and edit these config files with no success.
As an example this will work on Minikube
once the ingress add on is enabled, This example shows the base Nginx server image at port 80 on the cluster IP:
ANSWER
Answered 2019-Feb-07 at 12:08If I understood you correctly, there are a few ways you might be looking at.
One would be MetalLB which you already mentioned.
MetalLB provides a network load-balancer implementation for Kubernetes clusters that do not run on a supported cloud provider, effectively allowing the usage of LoadBalancer Services within any cluster.
You can read the detailed implementation A pure software solution: MetalLB
Another way would be Over a NodePort Service
This approach has a few other limitations one ought to be aware of:
- Source IP address
Services of type NodePort perform source address translation by default. This means the source IP of a HTTP request is always the IP address of the Kubernetes node that received the requestfrom the perspective of NGINX.
You can also use host network
In a setup where there is no external load balancer available but using NodePorts is not an option, one can configure
ingress-nginx
Pods to use the network of the host they run on instead of a dedicated network namespace. The benefit of this approach is that the NGINX Ingress controller can bind ports 80 and 443 directly to Kubernetes nodes' network interfaces, without the extra network translation imposed by NodePort Services.
You have to also remember that if you edit the configuration inside the POD
, it will be gone if the Pod is restarted or it crashes.
I hope this helps you to determine which way to go with your idea.
QUESTION
I am trying to install kubernetes. There was a problem when checking the container executed on kubernetes. I set the type of service to Nodeport, but I could not access from a node other than the one on which the container is running. Want to make it accessible from other computers, please tell me where it is different. I tried externalIPs and LoadBarancer, but it was impossible.
Enviroment
- OS:Ubuntu 16.04 LTS
- Kubernetes:1.8
- Docker:17.09.0-ce
- etcd:3.2.8
- flannel:0.9.0
Network
- Physical:10.1.1.0/24
- flannel:172.16.0.0/16
- docker:192.168.0.0/16
Machines
- Master Node(2nodes):10.1.1.24,10.1.1.25
- Worker Node(2nodes):10.1.1.26,10.1.1.27
kubectl describe svc nginx-cluster
...ANSWER
Answered 2017-Oct-14 at 08:48you can first check the node port whether the port is open,
use
netstat -ntlp
to check, if yes , that maybe some problem with the iptable or routing,
if no , please check the firewall or other question
Good luck
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nginx-cluster
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page