Skip to content

Instantly share code, notes, and snippets.

View f-asa's full-sized avatar
🎯
Focusing

fasa f-asa

🎯
Focusing
View GitHub Profile
@magynhard
magynhard / manjaro_rvm_install_ruby_openssl.md
Created May 21, 2023 19:50
Install Ruby with RVM and OpenSSL support on Manjaro

Update to current ruby versions on Manjaro Linux when using RVM and no precompiled binary is available.

Prerequisites

sudo pacman -S gcc openssl-1.1

Install

Replace Ruby version at the end of this command with the version you want to install.

@dougbtv
dougbtv / virtdp-daemonset.yaml
Last active October 20, 2018 04:19
Modified virtual device plugin daemonset
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: virt-device-plugin
namespace: kube-system
---
apiVersion: extensions/v1beta1
kind: DaemonSet
@dougbtv
dougbtv / !readme.md
Last active December 18, 2018 04:49
You had ONE JOB -- A Kubernetes job.

You had ONE JOB -- A Kubernetes job.

Let's take a look at how Kubernetes jobs are crafted. I had been jamming some kind of work-around shell scripts in the entrypoint* for some containers in the vnf-asterisk project that Leif and I have been working on. And that's not perfect when we can use Kubernetes jobs, or in their new parlance, "run to completion finite workloads" (I'll stick to calling them "jobs"). They're one-shot containers that do one thing, and then end (sort of like a "oneshot" of systemd units, at least how we'll use them today). I like the idea of using them to complete some service discovery for me when other pods are coming up. Today we'll fire up a pod, and spin up a job to discover that pod (by querying the API for info about it), and put info into etcd. Let's get the job done.

This post also exists as a [gist on github](https