• Apple Silicon's Rosetta: Selecting different architectures

    2 min read

    apple sillicon m1 rosetta arch command

    On Apple Silicon-based Macs we have the arch command that will allow us to to run a selected architecture of a universal binary. By default, the operating system will select the architecture that most closely matches the processor type.

    The arch command can be used to alter the operating system's normal selection order.

    30/08/2023

    Read more...
  • How to Fix the "invalid active developer path" error

    2 min read

    macOS error Xcode invalid active developer path xcrun

    Have you encountered the invalid active developer path error while trying, for example, to use git on your macOS system? This error occurs because Git requires the Command Line Tools for Xcode to be installed on your system (typically you'll encounter this after updating the system)

    $ git
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    

    06/04/2023

    Read more...
  • Show current Kubernetes context in the menu bar

    2 min read

    kubernetes context macos tray icon

    Some commands might be safe to execute while connected to some environments, but can definitely break stuff is applied to the wrong Kubernetes cluster. However, having to execute kubectl config current-context too ofter to make sure we are connected to the right cluster is no fun either.

    With kubectx tray we can have a small icon on the tray bar to help us identify what's the current cluster.

    30/11/2022

    Read more...
  • Install awstools on a Mac

    4 min read

    AWS awstools

    awstools is a CLI tool that provides a small set of commands to manage the most commonly EC2 resources. It's installation it's not hard since it is a python script that has a list of dependencies on the requirements.txt file, but now it's even easier on Mac since there is a tap available

    20/09/2022

    Read more...
  • Install minikube on an Apple Sillicon without Docker Desktop

    4 min read

    minikube docker colima apple M1 arm64 apple sillicon

    If you try to install minikube on an Apple Sillicon (such as Apple M1, M2...) you will face that some hypervisors doesn't support arm64 yet. Using Docker Destop, on the other hand, has recently changed it's license so it might not be suitable to you

    $ minikube start
    😄  minikube v1.26.1 on Darwin 12.5.1 (arm64)  Automatically selected the parallels driver. Other choices: ssh, qemu2 (experimental)
    
      Exiting due to DRV_UNSUPPORTED_OS: The driver 'parallels' is not supported on darwin/arm64
    
    $ minikube start --driver docker
    😄  minikube v1.26.1 on Darwin 12.5.1 (arm64)  Using the docker driver based on user configuration
    
    💣  Exiting due to PROVIDER_DOCKER_NOT_RUNNING: "docker version --format -" exit status 1: Cannot connect to the Docker daemon at unix:///Users/jordiprats/.rd/docker.sock. Is the docker daemon running?
    💡  Suggestion: Start the Docker service
    📘  Documentation: https://minikube.sigs.k8s.io/docs/drivers/docker/
    

    There are several alternatives to Docker Desktop but the one that I found more convenient and easier to install is Colima

    14/09/2022

    Read more...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets
Categories
tags related to this category