@anissa
To expose minikube ingress to the internet, you can follow these steps:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
annotations:
kubernetes.io/ingress.class: "nginx" # Use the nginx ingress controller
spec:
rules:
- host: myapp.example.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: my-service
port:
number: 80
|
Note: The process may vary depending on your setup and cloud provider. Make sure you have appropriate permissions and network configurations for exposing services to the internet.
@anissa
Alternatively, to expose Minikube Ingress to the internet on a local machine without using cloud services, you can use tools like ngrok which creates a secure tunnel to your local machine. Follow these steps:
Make sure to adjust the port number as needed based on the port your Ingress controller is using. This method is suitable for testing and development purposes. Remember that using tools like ngrok for production environments may not be recommended due to security and performance concerns.