Prometheus monitoring stack on Ubuntu 22.04.3 and Micro Kubernetes Cluster (microk8s)Prometheus monitoring stack on Ubuntu 22.04.3 and

1) Install Ubuntu 22.04.3 desktop

2) Configure RDP and VNC –
https://www.youtube.com/watch?v=63uppKZ_Alk
https://www.youtube.com/watch?v=m5U1PgqfGiA – fix the lock problem

3) Install docker

sudo apt install docker.io

4) Check docker version

docker --version

5) Create a Micro Kubernetes Cluster (microk8s)

See here: https://microk8s.io/docs/getting-started

sudo snap install microk8s --classic --channel=1.27

MicroK8s creates a group to enable seamless usage of commands which require admin privilege. To add your current user to the group and gain access to the .kube caching directory, run the following two commands:

sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube

See the node:

microk8s kubectl get nodes

See the running services:

microk8s kubectl get services

Create an alias:

alias kubectl='microk8s kubectl'

Deploy an app:

microk8s kubectl create deployment nginx --image=nginx
microk8s kubectl get pods

Starting and Stopping MicroK8s:

microk8s stop
microk8s start

6) export the cluster configuration

kubectl config view --raw > ~/.kube/config

7) Install helm

$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
$ chmod 700 get_helm.sh
$ ./get_helm.sh

8) Deploy Prometheus monitoring stack to Kubernetes with a single Helm Chart

See: https://dev.to/kaitoii11/deploy-prometheus-monitoring-stack-to-kubernetes-with-a-single-helm-chart-2fbd

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
kubectl create ns prom
helm search repo prometheus-community
helm install prometheus prometheus-community/kube-prometheus-stack -n prom

helm install ksm prometheus-community/kube-state-metrics -n default # install the kube-state-metrics

kubectl --namespace prom get pods

Check configmaps and secrets:

kubectl --namespace prom get configmap
kubectl --namespace prom get secret

Look inside a secret file:

kubectl --namespace prom get secret

Check CRDs

kubectl get crd

9) Access Prometheus Dashboard

$ kubectl port-forward -n prom prometheus-prom-kube-prometheus-stack-prometheus-0 9090

10) Access Grafana Dashboard

$ kubectl port-forward -n prom prometheus-grafana-dcb6cdfb4-kbvpk 3000

OR

$ kubectl port-forward -n prom deployment/prometheus-grafana 3000

default user/password is admin/prom-operator

11) Uninstall Prometheus stack

$ helm uninstall prom -n prom

Baked Catfish

Original recipe from here: https://www.delish.com/cooking/recipe-ideas/a26595303/best-baked-catfish-recipe/

Directions

Preheat oven to 425° and drizzle 2 tablespoons oil on a large baking sheet. On a large plate, combine cornmeal and Cajun seasoning. Season catfish with salt and pepper, then dredge fish in seasoned cornmeal, pressing to coat. 

Place fish on prepared baking sheet and drizzle with remaining 2 tablespoons oil. Bake until golden and fish flakes easily with a fork, 15 minutes. Serve with lemon wedges.

breaded catfish

Lawn Winterkill: Lessons from 2016-’17

https://csuhort.blogspot.com/2017/12/lawn-winterkill-lessons-from-2016-17.html

No Roof Scams

There are many things consumers can do to guard against being the victim of a fraudulent roofing contractor.

  • Look for well-established, licensed, insured and bonded roofing professionals with a federal tax identification number and a permanent address.
  • Ask for a contractor’s license number and confirm with your city or county building department that the license number was issued by them and is current.
  • Check to make sure the contractor is registered to conduct business in Colorado at https://www.sos.state.co.us/biz/BusinessEntityCriteriaExt.do.
  • Ask to see the company’s certificates of insurance. Verify with the insurer the certificate is valid, the contractor is endorsed for roofing work, and the contractor’s coverage for liability and workers’ compensation is current. CONSUMER TIP: Check the number of employees covered by the policy – a low number indicates the contractor will hire temporary help who may or may not have roofing experience.
  • Don’t hire a contractor who knocks on your door following a storm. Most legitimate roofing contractors do not conduct business this way.
  • Contact the Colorado Roofing Association (CRA), which maintains a current list of licensed, properly insured, professional contractors who have committed to abiding by the CRA Code of Ethics, and have passed a nationally recognized exam that addresses roofing work on residential and/or commercial property.
  • Contact the Better Business Bureau to check for complaints filed against any company you are considering hiring.
  • Be sure to get more than one estimate.
  • Require references that specifically include other homes in your area, and check them.
  • Make sure you review and understand all documents sent to your insurance carrier.
  • Never pay a contractor in full or sign a completion certificate until all the work is completed.
  • Don’t be pushed into signing a contract right away. Never sign a contract with blanks or statements like “see insurance estimate, etc.” – fraudulent contractors may enter unacceptable terms later.
  • Always ensure that before you sign a contract it includes all the requirements established in Colorado Senate Bill 38.
    1. Scope of work and materials to be provided.
    2. Cost for same based on damages known at the time the contract is entered into.
    3. Approximate dates of service.
    4. Roofing contractor’s contact information.
    5. Identification of contractor’s surety and liability coverage insurer and their contact information.
    6. Contractor’s policy regarding cancellation of contract and refund of any deposit including a rescission clause allowing the property owner to rescind the contract for roofing services and obtain a full refund of any deposit within 72 hours after entering the contract.
    7. A statement that if the property owner plans to pay for the roofing services through an insurance claim, the contractor cannot pay, waive or rebate the homeowner’s insurance deductible in part or in whole.
    8. A statement that the contractor shall hold in trust any payment from the property owner until the contractor has delivered roofing materials to the jobsite or has performed a majority of the roofing work on the property.
    9. A statement that the property owner may rescind a contract for services, the payment for which will be made from the proceeds of a property insurance claim, within 72 hours after receiving notice from their insurer that the claim is denied in whole or in part.

Organizations participating in the No Roof Scams campaign include:

Original link: NoRoofScam Campaign Fighting Roofing Fraud in Colorado During Severe Weather