-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application is launched with 0 Pods as shown in the UI #58
Comments
Also , i created the nodeport service, nginx service and added kubernetes.local in etc/hosts , but for some reason the IP address of the ingress is blank : kubectl get ingress -n kubeinvaders |
Hi @rohits-splunk for metrics I need some logs of your running kubeinvaders pod. May there is some error in lua code. At moment we do not support nodeport service, can you investigate on helm chart? |
I can quickly send the logs to you . Also If Node Port service is not supported, should i be running it via the NGINX service ? Sorry i am very new to Helm Chart and K8s . But i have come a long way, Just need to launch the application with enough load to generate the right metric data. I know if the replica set desires only 1 pod it wont scale more than that. Also If i am directly reaching the running pod through port forwarding, i wont be able to see full load of the application which could be distributed across multiple pods. Attaching here. |
Hi @rohits-splunk thanks! Did you use this for installing? Of course kubeinvaders.io must be changed with the URL you want to choose for reach KubeInvaders...
|
Yes i used these steps exactly and almost did for 10 times :) Also i changed the ingress.hostname=kubernetes.local and entered the ingress controller IP address and hostname in /etc/hosts but i am still not able to access the application. `curl https://kubeinvaders.local/kube/api -k -v
404 Not Foundopenresty/1.21.4.1 * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection #0 to host kubeinvaders.local left intact [splunker@ip-10-202-11-19 ~]$ curl https://192.168.49.2/kube/api -k -v * Trying 192.168.49.2... * TCP_NODELAY set * Connected to 192.168.49.2 (192.168.49.2) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, [no content] (0): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: O=Acme Co; CN=Kubernetes Ingress Controller Fake Certificate * start date: Oct 27 08:02:13 2022 GMT * expire date: Oct 27 08:02:13 2023 GMT * issuer: O=Acme Co; CN=Kubernetes Ingress Controller Fake Certificate * SSL certificate verify result: self signed certificate (18), continuing anyway. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * Using Stream ID: 1 (easy handle 0x55785d37d6b0) * TLSv1.3 (OUT), TLS app data, [no content] (0): > GET /kube/api HTTP/2 > Host: 192.168.49.2 > User-Agent: curl/7.61.1 > Accept: */* > * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (IN), TLS app data, [no content] (0): < HTTP/2 404 < date: Thu, 27 Oct 2022 13:04:06 GMT < content-type: text/html < content-length: 146 < <title>404 Not Found</title> 404 Not Foundnginx * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection #0 to host 192.168.49.2 left intact` |
Also my i still dont have external IP on kubeinvaders service ( cluster IP ) and Loadbalancer kubectl get svc -n kubeinvaders |
:) no problem, we will solve! Can you please let me know your kubernetes distribution and if it is on-premise or in cloud? |
Thank you Sir :) I have installed it on minikube ( docker driver) on an EC2 instance. It is a CentOS machine. |
After i did minikube tunnel , i can see the external IP against the nginx-ingress-ingress-nginx-controller( LoadBalancer) service . But i am still not able to access the app from the local browser. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE |
@lucky-sideburn Anything you found sir ? |
Hi @rohits-splunk, I never tried KubeInvaders on Minikube :) Anyway I made the following test: 🧯 Docker is nearly out of disk space, which may cause deployments to fail! (96% of capacity). You can pass '--force' to skip this check.
🍿 Related issue: kubernetes/minikube#9024 🐳 Preparing Kubernetes v1.25.2 on Docker 20.10.18 ... ❗ /usr/local/bin/kubectl is version 1.23.3, which may have incompatibilites with Kubernetes 1.25.2. ~$ minikube addons enable ingress eugenio@luckysideburn:~$ helm repo update
NAME: kubeinvaders ~$ kubectl get ingress -A |
I close the ticket @rohits-splunk because is not supporter minukube :) |
Hello @lucky-sideburn I have been able to reach upto this level as well. If Minikube is not a supported way, then what should be the ideal way to do it ? Just on the docker desktop ? |
@rohits-splunk I use KubeSpray :) |
Is kubeinvaders supported if i deploy a 1 node cluster on AWS ec2 instance ? |
And are you able to access the application on above ingress IP address ? |
Hi @rohits-splunk I only tested it on KubeSpray :) Please let me know! |
Kubespray is something new for me, i just created a 3 node cluster on digital ocean . Do you know if users have been able to deploy this application on digital ocean ? |
I still see 404 when accessing the api.
404 Not Foundopenresty/1.21.4.1 * Connection #0 to host kubeinvaders.local left intact |
Hello, I was successfully able to launch the application through EC2->Docker driver and accessing the app by port forwarding on the pod. But i am not sure why all the metrics values are 0 . Is there any way i can increase the count ? Sorry but the documentation is not very clear.
The text was updated successfully, but these errors were encountered: