• Helm diff using a plugin

    3 min read

    helm upgrade diff

    Just as with kubectl diff, there's a helm plugin that helm us to the the actual differences that it will apply to the kubernetes cluster without much of the clutter that we will find by combining kubectl diff with the yaml output of a helm dry-run

    15/01/2021

    Read more...
  • Create a yaml template using kubectl

    2 min read

    kubectl yaml template dry-run

    When you create a new deployment you usually focus on:

    • Number of replicas
    • How you are going to select the pods that are going to be managed by this deployment
    • Pod template

    Beside this, all the other required lines on the yaml are boilerplate so it's quite easy to forget about them.

    14/01/2021

    Read more...
  • Installing kubectl plugin with krew: unused-pvc

    2 min read

    kubernetes plugins krew unused-volumes

    Krew is a plugin manager for kubectl (v1.12 or higher), we will need to install krew first. To be able to test the unused-volumes plugin we will have to create a PersistentVolumeClaim that we won't use on any pot:

    apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      name: demo-pvc
      namespace: kube-system
    spec:
      accessModes:
        - ReadWriteOnce
      resources:
        requests:
          storage: 10Gi
    

    13/01/2021

    Read more...
  • helm: set a value for a dependency

    2 min read

    kubernetes helm chart dependency

    If you are writing a helm chart, it makes no sense to add all the yaml files on your helm chart when there's already a helm chart for some of the components: It's always best to reuse existing code so including another chart as dependency will deploy all the related yaml files.

    dependencies:
      - name: minio
        version: 8.0.8
        repository: https://helm.min.io/
    

    Nevertheless, how do we change a default value for the chart we add as dependency?

    12/01/2021

    Read more...
  • Get YAML for deployed Kubernetes objects

    2 min read

    kubernetes object yaml kubectl

    In case we have some objects on the kubernetes cluster that we want to modify but we don't have the original yaml, we can retrieve the object in yaml format from the cluster using kubectl

    11/01/2021

    Read more...

More recent...

Older content...