Blog O' Matty


Notes from episode 5 of TGIK: Pod Params and Probes

This article was posted by Matty on 2018-02-08 18:00:00 -0500 -0500

Over the past few months I’ve been trying to learn everything there is to know about Kubernetes. Kubernetes is an amazing technology for deploying and scaling containers though it comes with a cost. It’s an incredibly complex piece of software and there are a ton of bells and whistles to become familiar with. One way that I’ve found for coming up to speed is Joe Beda’s weekly TGIK live broadcast. This occurs each Friday at 4PM EST and is CHOCK full of fantastic information. In episode five Joe talks about pod parameters and probes. You can watch it here:

Here are some of my takeways from the episode:

Things I need to learn more about:

Notes from episode 4 of TGIK: RBAC

This article was posted by Matty on 2018-02-07 20:19:49 -0500 -0500

Over the past few months I’ve been trying to learn everything there is to know about Kubernetes. Kubernetes is an amazing technology for deploying and scaling containers though it comes with a cost. It’s an incredibly complex piece of software and there are a ton of bells and whistles to become familiar with. One way that I’ve found for coming up to speed is Joe Beda’s weekly TGIK live broadcast. This occurs each Friday at 4PM EST and is CHOCK full of fantastic information. In episode four Joe talks about Role Based Access Control (RBAC). You can watch it here:

Here are some of my takeways from the episode:

Things I need to learn more about:

Creating Kubernetes pods with your favorite OS to test new features

This article was posted by Matty on 2018-02-07 20:00:00 -0500 -0500

*** UPDATE 05/15/2020 ***

I have since learned about Weave’s footloose project, which provides a VM-like experience, but utilizes containers under the covers. Amazing project!

*** Original Post ***

As I dig deeper into Kubernetes it’s been useful to spin up a pod with one of my favorite Operating Systems and review the configuration for that pod. This is super easy to do with kubectl run’s –image option. To create an Ubuntu VM you can pass the ubuntu image name to “–image”

$ kubectl run -it --rm --image=unbuntu ubuntu -- bash

To create a CentOS pod you can use the centos image:

$ kubectl run -it --rm --image=centos centos -- bash

To create a Fedora pod you can use the fedora image:

$ kubectl run -it --rm --image=fedora fedora -- bash

And to create an alpine pod you can use the alpine image:

$ kubectl run -it --rm --image=alpine alpine -- ash

If you want to run a specific version of an OS you can add the version to the image name:

$ kubectl run -it --rm --image=fedora:26 fedora26 -- bash

Once the POD is up you can start reviewing the various Kubernetes objects that were created to support the pod. You can also use the “–dry-run” and output options to view the object that is created and sent to the API server:

$ kubectl run --image=alpine alpine --dry-run -o yaml

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    run: alpine
  name: alpine
spec:
  replicas: 1
  selector:
    matchLabels:
      run: alpine
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        run: alpine
    spec:
      containers:
      - image: alpine
        name: alpine
        resources: {}
status: {}

The YAML above can be copied to a file, modified and re-deployed with the kubectl create command. This is a fantastic way to tinker with all of the Kubernetes deployment options.

Notes from episode 3 of TGIK: Istio

This article was posted by Matty on 2018-02-06 18:00:00 -0500 -0500

Over the past few months I’ve been trying to learn everything there is to know about Kubernetes. Kubernetes is an amazing technology for deploying and scaling containers though it comes with a cost. It’s an incredibly complex piece of software and there are a ton of bells and whistles to become familiar with. One way that I’ve found for coming up to speed is Joe Beda’s weekly TGIK live broadcast. This occurs each Friday at 4PM EST and is CHOCK full of fantastic information. In episode three Joe talks about istio. You can watch it here:

Here are some of my takeways from the episode:

Things I need to learn more about:

Notes from episode 2 of TGIK: Networking and Services

This article was posted by Matty on 2018-02-04 18:43:54 -0500 -0500

Over the past few months I’ve been trying to learn everything there is to know about Kubernetes. Kubernetes is an amazing technology for deploying and scaling containers though it comes with a cost. It’s an incredibly complex piece of software and there are a ton of bells and whistles to become familiar with. One way that I’ve found for coming up to speed is Joe Beda’s weekly TGIK live broadcast. This occurs each Friday at 4PM EST and is CHOCK full of fantastic information. In episode two Joe goes into Kubernetes networking. You can watch it here:

Here are some of my takeways from the episode:

Things I need to learn more about: