Tag Archives: IT

Quote

A trick to resolve issues with YAML files for Kubernetes

I was going through this exercise for Using Calico network policies to block traffic when I thought that instead of deploying the webserver image using this command:

kubectl run webserver --image=k8s.gcr.io/echoserver:1.10 --replicas=3

I would create a yaml file to deploy the webserver instead. Unfortunately, there was something about my yaml file that preventing things from working. That’s when I came across this trick.

  • Step 1: deploy the web server using the kubectl run command.
  • Step 2:  run the following command to get the YAML back for the deployment


kubectl get deployment webserver --output yaml > webserver.yaml

  • Step 3: edit the webserver.yaml file to remove extra lines. For me, I was able to remove:
    •  the status section
    • the annotations section
    • the strategy section
    • etc.

And just keep the following lines (note, note formatted properly):


apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: webserver
name: webserver
namespace: default
spec:
replicas: 3
selector:
matchLabels:
run: webserver
template:
metadata:
labels:
run: webserver
spec:
containers:
- image: k8s.gcr.io/echoserver:1.10
name: webserver

Now, you do not have to edit the file. But I think this is cleaner than the full version that comes back.

So you can delete the deployment that was the result of the command line and instead build future deployments using the yaml file.

Advertisements
Quote

For MacOS users who need a simple and free stopwatch or timer

 This tool seems pretty good. Using it right now.

Quote

The iPod Touch lives!


And as someone who is a fan of it since a long time, I was glad to hear about it here:  There’s a New iPod Touch. Yes, in 2019, and Yes, It’s Worth Looking at. – The New York Times

Back in the day when Blackberries were the rage and I needed one for work, the iPod Touch was my way of tapping into the world of Apple. Today if I had to use Android for whatever reason, I’d be inclined to get a Touch again, just so I could do things the Apple way. It’s a great device still, and if you read the article, you’ll see it is not obsolete.

Now if Apple would only bring back the Nano! 🙂

Quote

A love story of a different kind: love of the small phone


This is a love story in a way, although it’s a love affair with a device: Tim Cook Will Have To Pry My iPhone SE From My Cold, Tiny Hands.

It brings up an interesting thought: that for all the seeming abundance of smart phones, they really have narrowed into a specific style and range. They are all large, glass devices with fancy cameras. That’s what sells, and manufactures have no desire to make anything else. Or maybe they are fearful of trying to make something else.

Some event will occur and innovation and diversity will come to the personal device market. But for now, expect more of less.

(Image linked to in the article)

 

Quote

Secure Your Digital Life – a relatively pain free guide from the New York Times


I highly highly recommend this: NYT Programs – Secure Your Digital Life in 7 (Easy) Days

You can never do enough to security your information technology, but the more you do, the better off you are.

Quote

The Embroidered Computer. Fascinating.


First off, what is it?

The Embroidered Computer is an exploration into using historic gold embroidery materials and knowledge to craft a programmable 8 bit computer.

Brilliant. For more on the design and more photos, see here:  The Embroidered Computer | Irene PoschIrene Posch

Quote

Can you replace a Mac with an iPad?


According to this iPad vs. Mac: Is a tablet better than a laptop for school and work? in The Washington Post, not yet.

I agree with that assessment. I think there will be a time soon when you can, but not this year. Read the piece before you try to go solo with a tablet.