Skip to content

Instantly share code, notes, and snippets.

---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: nginx-deployment
namespace: default
spec:
selector:
matchLabels:
app: nginx
@markround
markround / petclinic.yaml
Created February 22, 2022 11:16
Petclinic sample app
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: petclinic
namespace: default
spec:
selector:
matchLabels:
app: petclinic-app
@markround
markround / fluent-bit-extension.yaml
Created February 8, 2022 11:10
fluentbit additions
# fluent-bit k14s objects managed by kapp-controller
---
apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
name: fluent-bit
namespace: tanzu-system-logging
annotations:
tmc.cloud.vmware.com/managed: "false"
spec:
@markround
markround / language_spectrumbasic.lua
Created February 6, 2022 20:48
LiteXL Syntax for Spectrum BASIC
-- mod-version:1 -- lite-xl 1.16
local syntax = require "core.syntax"
syntax.add {
files = { "%.bas$" },
comment = "",
patterns = {
{ pattern = "//.-\n", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" },
@markround
markround / outputs.sh
Created March 14, 2018 17:12
Terraform outputs to env vars
eval $(terraform output -json \
| jq 'map_values(.value)' \
| jq -r 'keys[] as $k | "\($k)='"'"'\(.[$k])'"'"'"' \
| awk -F"=" '{l = $0; sub($1, "", l); print "export "toupper($1) l}'
)
@markround
markround / gist:9b35ab09593a191bb87f
Last active August 29, 2015 14:07
Tiller override datasource
# Environment override datasource for Tiller (github.com/markround/tiller).
# This extracts all environment variables, and makes them available to templates
# by converting to lowercase. Note that it doesn't prefix them with env_ so they
# will potentially clash/override any other values you have defined in other
# datasources!
# Install into /usr/local/lib/tiller/data/override.rb
# And add to your list of data_sources in /etc/tiller/common.yaml
class EnvironmentOverrideDataSource < Tiller::DataSource
def global_values
values = Hash.new