What Are Common Use Cases of Daemonsets in Kubernetes?

Question
DaemonSets will bypass the scheduler and deploy to nodes that are designated as “unschedulable”; however you can use a DaemonSet to deploy to a subset of all the nodes (according to page 109 of Kubernetes in Action). In the real world, what are daemonsets used for in Kubernetes?

Answer

  • Monitoring of pods/nodes (such as Prometheus Node Exporter,

How Do You Parse a String in Bash?

Problem scenario
You want to count the number of “(” (open parens) in a string. How do you parse a string in Bash?

Solution
Remember to use awk. The -F flag can allow you to designate a character to count and the NF flag can count the occurrences.

echo “continualintegration” | awk -F “o” ‘{print NF-1}’

echo “c(ntinua((lintegrati(n” | awk -F “(” ‘{print NF-1}’

You may also want to see this posting parse an array.

What is Knowledge of Merging Strategies in the Context of Git?

Question
What are different merging strategies in the context of Git?

Possible Answers
“…branches are completely useless unless you merge them…” – Linus Torvalds

A branch is a set of files associated with a code base usually in a collection known as a repository. Atlassian says “[b]ranching is a feature available in most modern version control systems…”,

How Do You Fix a Carrier Thermostat That Is Blinking All Lights and Not Working?

Problem scenario
Your Carrier thermostat (e.g., a programmable Comfort (TM) Series Touch-n-Go (TM)) is not working. There is a glitch or apparent malfunction on the screen. All the lights flash on with the backlight turning on — then the display goes dark (unlit with no indication). The heating and cooling does not work. The batteries seem good; the thermostat showed them at two-thirds strength (two of three bars were strong).

How Do You Troubleshoot “mount: /foobar: must be superuser to use mount” when You Open a Terminal in Linux?

Problem scenario
When you open a terminal or log into a Linux server, you see a message like this:

“mount: /foobar: must be superuser to use mount.”

You suspect some bash script is running every time you log in. What should you do?

Possible solution #1
If you are running a Red Hat server, go to /etc/profile.d/. Sort the files by time modified like this:

ls -lh –sort=time

Look for a script that is trying to mount foobar.

Confused about Legal Policies for your Small Business?

Problem scenario
You run a website business. Where do you go to get an understanding about legal policies? You want to learn more about how to comply with Amazon’s Affiliate Marketing program’s policies. What do you do?

Solution
You can try termly.io for general policy information assistance. For Amazon’s Affiliate Marketing program specifically, see this external posting. For the FTC’s guidance that was published in March of 2013,

How Do You Troubleshoot Errors Such as “/lib64/libcurl.so.4: no version information available”?

Problem scenario
You try to run an obs command. You get errors like these:

var/lib/snapd/snap/obs-studio/1195/usr/bin/obs: /lib64/libcurl.so.4: no version information available (required by /var/lib/snapd/snap/obs-studio/1195/usr/bin/obs)
/var/lib/snapd/snap/obs-studio/1195/usr/bin/obs: symbol lookup error: /var/lib/snapd/snap/obs-studio/1195/usr/bin/obs: undefined symbol: obs_get_module_lib

What should you do?

Solution

  1. Back up the /lib64/libcurl.so.4 to a user’s home directory (just in case).
  2. Run this:
    sudo find / -name libcurl.so.4 | grep -i obs
  3. Copy one of the files found above to /lib64/

How Do You Troubleshoot Adding Red Hat Packages with Errors Like “Curl error (77): Problem with the SSL CA cert (path? access rights?)”?

Problem scenario
You try to run a DNF command, but you get stymied with errors like these:

Fedora 32 foobar (From SomeCompany) – x86_64 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository ‘fedora-somecompany-foobar’: – Curl error (77): Problem with the SSL CA cert (path? access rights?) for https://mirrors.fedoraproject.org/metalink?repo=fedora-somecompany-foobar-32&arch=x86_64 [error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs]
Cannot prepare internal mirrorlist: Curl error (77): Problem with the SSL CA cert (path?

How Do You Fix a White/Blank Web Page?

Problem scenario
You have a white screen in the web browser. Why is the website just white when using HTML?

Possible Solution #1
Are the font and background color the same? If the font is set to be white, that may be the problem. HTML has hexadecimal codes for the font and background color; you can view them here: https://htmlcolorcodes.com/

Possible Solution #2
Is there a misspelling in the URL and the ultimate web page?

Is There a Difference between an IAM Role and an IAM Access Key?

Question
Is there a difference between an IAM role and an IAM access key?

Answer
Yes. To summarize this article, IAM users are for humans and IAM roles are for AWS components (such as S3 buckets and EC-2 instances). As a less significant difference, you do not rotate IAM roles (according to this medium.com post).

An access key is like a username;