How Do You Troubleshoot a Kubernetes Dashboard Message about a 403 Forbidden Error?

Problem scenario
You created an EKS cluster. But when you open a web browser and go to the API endpoint, you get a 403 forbidden error.

The web browser shows something like this:

kind “Status”
apiVersion “v1”
metadata {}
status “Failure”
message “forbidden: User \”system:anonymous\” cannot get path \”/\””
reason “Forbidden”
details {}
code 403

How do you access the web UI in Kubernetes for the first time?

What Does the Phrase Cloud Native Mean?

Question
What does the phrase “Cloud Native” mean?

Answer
It is a descriptive term that that means having the qualities of cutting-edge cloud technologies. In our experience it connotes using microservices and containers primarily with open source technologies. In some ways it is cloud 2.0. Originally cloud computing referred to SaaS and possibly IaaS or PaaS, but now cloud computing is referring to CaaS and KaaS too.

How Do You Troubleshoot a Bitbucket Webhook Invocation to Start a Jenkins Build?

Problem scenario
You have created a webhook in Bitbucket to call a Jenkins URL. You create the triggering event in the repository (e.g., by pushing code or creating a pull request). The build associated with the Jenkins URL does not start.

You manually tested the Jenkins URL, bypassing Bitbucket, with curl -X POST. The invocation successfully starts the build.

In the Bitbucket logs you see “Connection refused” or “403 Forbidden” errors when the triggering event happens to the given repository (configured with the webhook).

What Are The Disadvantages of Using WordPress for a Programming Blog?

Question
What are the drawbacks of using WordPress when you want syntax highlighting for code in your blog?

Answer

1. When you paste PHP code, it will disappear. In Weebly for example, you can paste PHP code and there will be no automatic elimination of it. In Weebly, the PHP code remains as text. You have to get used to this. WordPress is clearly more flexible and mature than Weebly,

How Do You Analyze Code with SonarQube?

Problem scenario
You want to utilize SonarQube to do some analysis of some code. What do you do?

Solution
Prerequisites
This assumes you have SonarQube and SonarQube Scanner (aka sonar-scanner) installed. If you need assistance with either of these, see this link to install SonarQube or this link to install sonar-scanner.

Procedures

  1. Place the source code file (e.g.,

How Do You Deal with USB Device Failure When the USB Stick Is Known to Work with Other Computers?

Problem scenario
One of the below three situations describes your problem:

#1  You insert a USB stick and nothing happens.  You know the USB sticks work with other computers.

OR

#2  You insert a USB stick and nothing happens for a while.  There is a long delay.  You know the USB sticks work fine with other computers.

OR  

#3 

How Do You Troubleshoot the Ansible Error “directory was skipped as it does not seem to be a valid directory or it cannot be accessed”?

Problem scenario
You are using Ansible’s find module.  You want it to find the destination of a symbolic link.  When you run the playbook you have a way of finding what the find module returns.  It is saying something about “directory was skipped as it does not seem to be a valid directory or it cannot be accessed.”  What should you do?

Solution
Use the stat module. 

How Do You Install Kerberos Key Distribution Center Server on a CentOS/RHEL/Fedora server?

Problem Scenario
You want to install the Kerberos KDC server on a Red Hat derivative of Linux.  You want to test it out with a second Red Hat distribution of Linux server as a client of the Kerberos centralized authentication server.  What do you do?

Solution
Prerequisites
Ensure the Kerberos authentication server can receive inbound connections over ports 88, 464,

How Do You Install Foreman on a RHEL Server?

Problem scenario
You want to install Foreman on a RHEL server.  What should you do?

Solution
Warning
If you install this on a server that is already a Puppet master server, your site.pp file will be overwritten.

Procedures
Tips:  With EC-2 instances, you can usually skip to step #3.

1.  Modify /etc/hostname to be the FQDN of your server (the result of a hostname -f command).

How Do You Use a Bound Method in Python?

Problem scenario
You want to write a Python program with a bound method.  What should you do?

Solution
This program uses a bound method.  The method funtest() is bound to objects that are members of the class “widgetfactory”.  You cannot use the method without it being bound to this class.  (If you uncomment out the last line, you’ll see it is a bound method and not an unbound method;