# create a secret kubectl create secret generic <name> --from-literal=<key>=<vaule>
# access in a k8s file
---
containers:
- env:
Using Hashicorp Waypoint runner for Kubernetes is pretty straight forward... but sometimes runs into permissions errors.
Specifically jobs.batch is forbidden: User "system:serviceaccount:waypoint:waypoint-runner" cannot create resource "jobs" in API
You need to
- create a role with access to the jobs.batch api
- bind it to the service account
You can do this as follows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
mach-nix = import (builtins.fetchGit { | |
url = "https://github.com/DavHau/mach-nix"; | |
ref = "refs/tags/3.4.0"; | |
}) { | |
python = "python39"; | |
pypiData = builtins.fetchTarball "https://github.com/DavHau/pypi-deps-db/tarball/master"; | |
# August 28 2022 Commit | |
# pypiDataRev = "65195091a39d5ea4d9843923ed1a14a6fd280036"; | |
# pypiDataSha256 = "1wh0ql0m7g7ivyh188c9blvmvz5qd6448b7hilzqlb7y3z6b8mja"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# should include all of the packages that you need and produce a binary | |
nix-shell -p cargo libiconv openssl pkgconfig --run "cargo build --release" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Hedging options with squeeth (eth^2) and perps | |
# https://medium.com/opyn/how-to-hedge-options-with-squeeth-b5e30d5d83ac | |
# https://docs.google.com/spreadsheets/d/1PBwyqmZXGRZoAlgSa9_ZZiUM28J92-vm7mUybH9HsBc/edit#gid=0 | |
# | |
# Steps: | |
# 1. Sell oSQTH with the same gamma as the option that was bought | |
# 2. Buy ETH futures to hedge the delta from the option that was bought and oSQTH that you sold | |
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
syntax enable | |
filetype plugin indent on | |
set noerrorbells | |
set tabstop=2 | |
set softtabstop=2 | |
set expandtab | |
set shiftwidth=2 | |
set smartindent | |
set nowrap |