Comments (5)
@lucacalcaterra this is the output of what? kubectl get nodes -o wide?
--node-external-ip I think is for a different use (k3s behind NAT, or with a public network interface), I found an example here.
For the services exposed by k3s, k3s uses a different kind of approach unlike k8s. You can find more info here in Service Load Balancer chapter.
And If you want to integrate k3s service with OCI LoadBalancer you have to install OCI CCM. With OCI CCM installed if you expose a service with a LoadBalancer service, then you get a public ip address for your service (the OCI CCM will create a Load Balacner for you).
The OCI CCM integration is a work in progress task, see PR #16
from k3s-oci-cluster.
@garutilorenzo this is the output of kubectl get svc -A
I noticed this behaviour because i'm trying to use skupper.io for link a site and the private cluster link to a private ip which is not reachable from remote.
So probably nothing wrong with this repo and i should use the OCI CCM as you suggest.
Thanks !
from k3s-oci-cluster.
anyway, i think you should see load balancer's public ip as external addres and not the backends ip's
from k3s-oci-cluster.
Dear @lucacalcaterra, the answer is no, with this module you can't see LP public IPs (not at the moment).
If you want to see LB public IPs you have to use a managed K8s (OKE for Oracle cloud Infrastructure, EKS for AWS, GKE for Google). The managed Kubernetes have installed by default the respective CCM (OCI, AWS, Google), the CCM does the "magic".
This module install k3s like it was an on-prem installation, with "no CCM support" so you can't see LB public IPs.
All the traffic (HTTP, HTTPS) from the internet, is redirected from the public LB (layer 4 LB) to the k3s workers where the ingress controller is listening.
All the services exposed by k3s are available here:
output "public_lb_ip" {
value = module.k3s_cluster.public_lb_ip
}
you can't see this public IP with kubectl, since there is no CCM installed.
So if you want to use skupper.io whit this module, you have to expose "the skipper service" (i haven't read the docs, but I think there is a svc for this application) with the nginx ingress controller.
Since skupper.io seams to be a L7 service you have all done, install skupper.io an expose with the ingress controller.
The public ip address of skupper.io will be the "public_lb_ip" from terraform.
I hope is more clear now.
from k3s-oci-cluster.
Dear @lucacalcaterra, the answer is no, with this module you can't see LP public IPs (not at the moment). If you want to see LB public IPs you have to use a managed K8s (OKE for Oracle cloud Infrastructure, EKS for AWS, GKE for Google). The managed Kubernetes have installed by default the respective CCM (OCI, AWS, Google), the CCM does the "magic".
This module install k3s like it was an on-prem installation, with "no CCM support" so you can't see LB public IPs. All the traffic (HTTP, HTTPS) from the internet, is redirected from the public LB (layer 4 LB) to the k3s workers where the ingress controller is listening. All the services exposed by k3s are available here:
output "public_lb_ip" { value = module.k3s_cluster.public_lb_ip }
you can't see this public IP with kubectl, since there is no CCM installed. So if you want to use skupper.io whit this module, you have to expose "the skipper service" (i haven't read the docs, but I think there is a svc for this application) with the nginx ingress controller. Since skupper.io seams to be a L7 service you have all done, install skupper.io an expose with the ingress controller. The public ip address of skupper.io will be the "public_lb_ip" from terraform.
I hope is more clear now.
Meanwhile your reply... i'll understand it... So your reply clarify all the things. thanks !
from k3s-oci-cluster.
Related Issues (20)
- Cannot access kubernetes from outside HOT 4
- Access service from outside using Nginx HOT 3
- Alternative operating system support? HOT 7
- 403 Forbidden access HOT 2
- Use Traefik 2 instead of nginx as ingress HOT 11
- 3 masters for ha HOT 5
- Add more node from other Oracle Cloud account HOT 1
- Trying to provision a new cluster but only getting timeouts recently HOT 8
- Change default server pool size to 1 HOT 3
- Default config issue: Longhorn install fails every time with the same issue. HOT 3
- Incompatible provider version for `registry.terraform.io/hashicorp/template` package HOT 2
- my_public_ip_cidr HOT 2
- No resources found in argocd namespace after successful deploy HOT 5
- Can the script be re-run after doing some changes? HOT 4
- Error: did not find a proper configuration for private key HOT 14
- Modifications needed to install Cilium HOT 1
- Not working from last week HOT 2
- 2 AMD Workers HOT 1
- Error when trying to access server via SSH
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3s-oci-cluster.