How Do You Find the Security Group ID Values in AWS?

Problem scenario
You want to list the Security Group ID value in AWS.

Solution
Prerequisite
Install and configure the AWS CLI; if you need assistance, see this posting if you can you the pip command and you are using Ubuntu. If you cannot use the pip command or you are not using Ubuntu,

 » Read more..

How Do You Troubleshoot a kubectl Command That Returns “The connection to the server localhost:8080 was refused – did you specify the right host or port?”?

One of the following problems pertains to you.

Problem scenario #1

You have a kubectl server. You created some new EKS clusters. How do you get the kubectl server to interface, control or manage the new EKS clusters.

or

Problem scenario #2

You are running EKS. You run this command:

kubectl get cluster-info

But you receive this message: “The connection to the server localhost:8080 was refused – did you specify the right host or port?”

What should you do?

 » Read more..

What Is Knowledge of Branching Strategies in the Context of a Build/Release Engineer or DevOps Engineer Job Description?

Problem scenario
You are preparing for an interview for a job where a requirement is “knowledge of branching strategies.” What could you discuss to assure them that you have knowledge of branching strategies?

Solution
Some companies have big development teams whereas others have small teams. The internal dynamics may dictate whether or not you will create a branch of a source code repository or not.

 » Read more..

How Do You Create a GCP Bucket?

Problem scenario
You want to create a GCP bucket. What should you do?

Solution

  1. Log into GCP. Go here:
    https://console.cloud.google.com/storage/browser?_ga=2.100337182.-1663846808.1542719582
  2. Click “Create bucket”.
  3. Enter a name. Configure settings as desired.
  4. Click “CREATE”.

 » Read more..

How Do You Troubleshoot the Ansible Playbook Error Associated with “[Errno 2] No such file or directory”?

Problem scenario
When running an Ansible playbook using the java_cert module you receive an message “[Errno 2] No such file or directory”. How do you fix this?
(If you were using a file linking step in the playbook and not the java_cert module, see this posting.)

Solution
Use the “executable” attribute of the java_certs module (https://docs.ansible.com/ansible/latest/modules/java_cert_module.html) to specify the full path of the keytool file.

 » Read more..

What Are The Advantages of a Service over an Ingress in Kubernetes?

Problem scenario
You have read that Ingresses have benefits compared to Services. You know the two are different for routing external traffic to reach a Kubernetes cluster. When would you want to use a Service instead of an Ingress?

Possible Answers

  1. When you want to direct traffic to Pods based on a selector and not an IP address. Ingresses use IP addresses*,

 » Read more..

How Do You Find if Your EC-2 Servers Are in a VPC?

Problem scenario
You want to know if your EC-2 servers are in a VPC or not. What do you do to determine if your EC-2 servers are in a VPC?

Possible Solution #1
To use the web console, see this external posting.

Possible Solution #2
This is a programmatic, character-based solution.

Prerequisite
This assumes that you have installed the AWS CLI.

 » Read more..

How Do You Find the Subnet ID values in AWS?

Problem scenario
You want to list the subnet ID values in AWS. What do you do?

Solution
Prerequisite

Install and configure the AWS CLI; if you need assistance, see this posting if you can you the pip command and you are using Ubuntu. If you cannot use the pip command or you are not using Ubuntu, see this posting.

 » Read more..

How Do You Troubleshoot Viewing a PDF when You Encounter The Error “Please wait… If this message is not eventually replaced by the proper contents”?

Problem scenario
Use PDF Architect or Adobe Acrobat you open a PDF but you see “Please wait… If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.” You know the PDF is good. You may or may not be prompted to enter a password to view the PDF. You don’t think that the PDF viewer should be prompting you for a password.

 » Read more..

What is a Multi-branch Jenkins Job?

Question
With a newer version of Jenkins, you want to know what a multi-branch job is. What is a multi-branch Jenkins job?

Answer
With a given repository of Git code, you may have different branches. These branches may be for new features of a compiled program, slight changes in code (e.g., to fix a bug or make a procedure run more quickly), or to completely refactor an existing program.

 » Read more..