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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: cert-manager | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: cattle-system |
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
apiVersion: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | |
resources: | |
- https://github.com/google/cadvisor.git/deploy/kubernetes/base?ref=v0.45.0-containerd-cri | |
images: | |
- name: gcr.io/cadvisor/cadvisor | |
newTag: v0.45.0-containerd-cri |
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=docker/dockerfile:1.3-labs | |
FROM ubuntu:22.04 AS curl | |
RUN <<EOF | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get -y update | |
apt-get -y install curl ca-certificates | |
EOF | |
FROM curl AS install |
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=docker/dockerfile:1.3-labs | |
FROM ubuntu:22.04 AS curl | |
RUN <<EOF | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get -y update | |
apt-get -y install curl ca-certificates | |
EOF | |
FROM curl AS install |
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
#!/usr/bin/env bash | |
set -e | |
set -o noglob | |
ORIGIN="${ORIGIN:-rancher}" | |
USERNAME="${USERNAME:-${USER}}" | |
print() { | |
echo -e "\033[0;32m$@\033[0m" >&2 | |
} |
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
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: sleep | |
stringData: | |
sleep.txt: zzz | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ntop | |
namespace: default | |
spec: | |
hostNetwork: true | |
terminationGracePeriodSeconds: 15 | |
containers: | |
- image: ntop/ntopng:stable |
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
{ | |
"__inputs": [], | |
"__requires": [ | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "7.4.5" | |
}, | |
{ |
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
#!/bin/bash | |
K3S_VERSION=$(go mod edit --json | jq -r '.Require[] | select(.Path | contains("rancher/k3s")) | .Version') | |
K3S_COMMIT=$(grep -oE '\w{12}$' <<< ${K3S_VERSION}) | |
K3S_GO_MOD=$(curl -qsL "https://raw.githubusercontent.com/k3s-io/k3s/${K3S_COMMIT}/go.mod") | |
echo "Updating go.mod replacements from k3s ${K3S_VERSION}" | |
for MODPATH in $(go mod edit --json | jq -r '.Replace[] | .Old.Path'); do | |
REPLACEMENT=$(go mod edit --json /dev/stdin <<<${K3S_GO_MOD} | jq -r --arg MODPATH "${MODPATH}" '.Replace[] | select(.Old.Path==$MODPATH) | .Old.Path + "=" + .New.Path + "@" + .New.Version') | |
if [ -n "${REPLACEMENT}" ]; then |
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
iptables: Chain already exists. | |
iptables: Chain already exists. | |
iptables: Chain already exists. | |
iptables: Chain already exists. | |
fatal error: unexpected signal during runtime execution | |
[signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7ff71c04a5ed] | |
runtime stack: | |
runtime.throw(0x43bae6b, 0x2a) | |
/usr/local/go/src/runtime/panic.go:1116 +0x72 |
NewerOlder