Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 8 Materials and Homework.

Follow us on Eventbrite to get notified when new workshops are scheduled!


question

chandrasekar.b03_190734 avatar image
chandrasekar.b03_190734 asked ·

Is internet access required to install the Prometheus operator for the week 5 exercises?

[FOLLOW UP QUESTION FROM #7423]

Does the internet is required for the prometheus operator to initialize?

workshopkubernetes
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

Yes, internet access is required to install the Prometheus operator.

In fact, internet connectivity is required for anything to do with Kubernetes clusters because it needs to be able to download the Docker images which are deployed onto pods. Cheers!

[UPDATE] For clarification, this command is not the actual installation operation:

$ kubectl -n cass-operator create -f operator.yaml

In Kubernetes, the operations are abstracted from users by design with the aim of making the installation process for applications as simple as possible.

Behind the scenes, the kubectl create command creates an operator resource (in this case the Prometheus operator) from the OperatorHub -- an online repository of operators for other applications.

In Kubernetes, operators are very complex software which in the end replace human administrators since operators provide the same operational functions that was previously manually performed by a human admin -- download software, install, configure, start/stop, maintain, upgrade, etc.

If you grasp the level of complexity that operators perform, then you should understand why it takes a long time for the behind-the-scenes installation to complete. Again, we are working with super-complex software here even though we make it look easy.

You mentioned your machine specs: "I have a Laptop with i3 processor, 2 cores with 8GB RAM." In my case, I'm running on a machine with 8 CPUs and 32GB of RAM with a 2Gbps connection and it still took a long time to complete. We recommend machines with a minimum RAM of 16GB (preferably more) to run the exercises. You have to accept all the compromises of running complex clusters on a small laptop.

6 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hi Erick,

Actually I did not mean the question for operator installation , because I already installed it using

kubectl -n cass-operator create -f ./prometheus_grafana/prometheus/operator.yaml

After installing the operator as you have told, I have waited for more than one and half hours with kubectl running at 45451.

I even tried checking the same command once again which tells

Error from server(already exists) : <filelocation listed> "prometheus" already exists.

Then i created an instance with this command:

kubectl -n cass-operator apply -f ./prometheus_grafana/prometheus/instance.yaml

//My output is again with same error:
error: unable to recognize "./prometheus_grafana/prometheus/instance.yaml": no matches for kind "Prometheus" in version "monitoring.coreos.com/v1"


What do I do now? How do I manage this issue?

Any help would be very much appreciable. :))

0 Likes 0 · ·

Hi @chandrasekar.b03_190734,

did you ever get to this point?

NAME                                  READY   STATUS    RESTARTS   AGE
prometheus-operator-cc5458b99-tbgx6   1/1     Running   0          13m

You can check if the pod is running:

kubectl get pods -n cass-operator

Thanks for your patience with this

0 Likes 0 · ·
chandrasekar.b03_190734 avatar image chandrasekar.b03_190734 bettina.swynnerton ♦♦ ·

Hi bettina,

I'm not getting this.. I have waited for this more than hours.....

Update: let me share my screenshot with you.

0 Likes 0 · ·
prometheus.jpg (362.5 KiB)
Erick Ramirez avatar image Erick Ramirez ♦♦ chandrasekar.b03_190734 ·

I think there's a misunderstanding here @chandrasekar.b03_190734. Let me update my answer for clarity. Cheers!


0 Likes 0 · ·

Hi Erick,

Fron the updates above, you are trying to say that I'm not be able to run the week 5 exercise on my laptop.

So far, on week 3 & week 4 due to latency issue for astra instance I'm not able to run exercises on my local machine (python as well as Java).

Now on week 5, i was struck at the Prometheus instance step. (I think I have been like Golum in all three weeks)

Hope I should be able to sucessfully run week 6 exercises. Let me focus that. :)

BTW, thanks for letting me know about the real scenario with the operator and my resources.

0 Likes 0 · ·
Show more comments