Basic kubernetes commands to investigate an issue

There are many usage cases of kubernetes and, hence, very distinct support scenarios when it deals to supporting a kubernetes issue. In my experience, I would call the following basic kubernetes commands to investigate an issue, as the most useful -and necessary- to accompany any kubernetes issue report.

Basic kubernetes commands to investigate an issue
kubectl version
kubectl cluster-info
kubectl get nodes -o wide
kubectl get pods --all-namespaces -o wide
kubectl get deployments --all-namespaces
kubectl get svc --all-namespaces -o wide

On the same time, I would include these couple of Docker commands:

docker -v
docker ps

To speed up any kubernetes troubleshooting, I’d recommend to provide the output of those commands in TXT format, rather than taking a screenshot.

Do you have any other experienced-based basic kubernetes command you would add to this list? Please share in the comments section.

Definitive guide to: The following packages have been kept back

In virtually every installation of Debian -or derivative- it will happen that at some point during software management one will be prompted this message: The following packages have been kept back Let’s provide an example to make it clear.

Example

First, you ran:

apt-get update

and everything was fine. We can affirm the command reported a 0 exit code.

After this you ran:

sudo apt-get upgrade

if your OS‘ software gets updated often and if it is updated at the time of running the upgrade command the output will be like this:

[email protected]:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  cinnamon-screensaver
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

… and there is the weird message: The following packages have been kept back.

Read more

World wide well known company datacenters locations

The latest couple of articles examined in some basic advices to choose a datacenter for your company.

This article exposes the location of world wide well known datacenters which belongs to companies like Google, IBM, Amazon (AWS) and a few others. The objective of this post is to share the location of such datacenters as of typing to these lines; it is based upon the good practice of reducing latency through short geographical separation among the DC and the own company headquarters.

So, let’s go ahead to meet the datacenter location of the chosen companies.

Google

Google’s datacenters are distributed into three major regions around the world, these are: Americas, Europe and Asia.The following image shows in the Google’s datacenter locations by specific country:

Google's datacenters locations
Google’s datacenters

The most noteworthy hosting services offered by Google belongs to their public cloud, in specific:

  • Compute
  • Storage and Databases
  • Networking
  • Big Data
  • Machine learning
  • Management tools
  • Developer tools
  • Identity and security

You may check out an updated list of Google’s datacenter in this link.

Read more

Advices to choose a data center for my company

In the previous release was outlined how the location, reputation of the data centre, own customer needs and technical infrastructure are key components to choose a data center. This new article will fulfill a series of basic advices every manager ought consider in this matter.

Servers in data center
Data center

Technical support

In choosing a data center I will pay undivided attention to the technical support staff. How well versed are the field engineers? How many are in there? What about their shifts? I would expect to have 24/7 coverage while making sure the CEs aren’t exhausted like to fall in error due to fatigue. The same questions applies for OS (Linux, Windows, etc) engineers -if offered by the DC (data center) as managed-service.

Are updated the resources in state-of-the-art technologies? Do they take trainings often? These are couple of important questions to ask.

Read more

Data centre for my company

The dynamics of IT operations typically will take the business to choose a data centre for the company. The small businesses uses to search for hosting services while large companies goes beyond elastic grow. This article examines some tips to choose a data centre and mentions the location of some of them.

data centre
Inside a typical data centre

The proximity of the data centre to the own company is always mentioned as first tip; however, it seems to be valid when colocation services will be used often. Also, sometimes a near data centre is a must be local laws demands it. For the instance, the public sector -central government- requires their servers in the same country; in contrast, private capitals may hire data centre services offshore unless they really need the data centre near to their facilities.

Read more