Skip to content

Instantly share code, notes, and snippets.

FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -y wget && \
rm -rf /var/lib/apt/lists/*
COPY --chmod=755 install.sh /
@janwillies
janwillies / metrics.txt
Created October 5, 2023 08:46
provider-cortex metrics
$ curl -g -6 'http://[fe80::1c04:b9bc:376d:c259%en0]:8080/metrics'
# HELP certwatcher_read_certificate_errors_total Total number of certificate read errors
# TYPE certwatcher_read_certificate_errors_total counter
certwatcher_read_certificate_errors_total 0
# HELP certwatcher_read_certificate_total Total number of certificate reads
# TYPE certwatcher_read_certificate_total counter
certwatcher_read_certificate_total 0
# HELP controller_runtime_active_workers Number of currently used workers per controller
# TYPE controller_runtime_active_workers gauge
@janwillies
janwillies / xrd.yaml
Created November 7, 2022 12:58
crossplane argocd gitlab xrd
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: compositeapplications.cnp.example.corp
spec:
connectionSecretKeys:
- runnerRegistrationToken
defaultCompositionRef:
name: application
claimNames:
@janwillies
janwillies / configuration.yaml
Created November 7, 2022 12:56
crossplane argocd and gitlab configuration / composition
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
name: application
spec:
writeConnectionSecretsToNamespace: crossplane-system
compositeTypeRef:
apiVersion: cnp.example.corp/v1alpha1
kind: CompositeApplication
resources:
@janwillies
janwillies / vcluster-crossplane-composition.yaml
Created November 16, 2021 13:04
A crossplane composition to spin up virtual Kubernetes cluster (vcluster)
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
name: xcluster.cnp.example.org
spec:
writeConnectionSecretsToNamespace: crossplane-system
compositeTypeRef:
apiVersion: cnp.example.org/v1alpha1
kind: XCluster
resources:

install argocd

kubectl create ns argocd
kubectl apply -n argocd --force -f https://raw.githubusercontent.com/argoproj/argo-cd/release-2.1/manifests/install.yaml
kubectl -n argocd port-forward svc/argocd-server 8443:443

add user for provider-argocd:

kubectl patch configmap/argocd-cm \
  -n argocd \
U-Boot TPL 2020.04 (Apr 20 2020 - 00:00:00)
Channel 0: LPDDR3, 800MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR3, 800MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=12 Die BW=16 Size=2048MB
256B stride
256B stride
Trying to boot from BOOTROM
Returning to boot ROM...
@janwillies
janwillies / screenlog.0
Last active May 3, 2020 16:25
New Description
[root@kodi ~]# cat /usr/share/arm-image-installer/boards.d/rock960-rk3399
# write uboot
echo "= Writing idbloader.img for $TARGET .... on media $MEDIA"
dd if=$PREFIX/usr/share/uboot/$TARGET/idbloader.img of=$MEDIA seek=64; sync; sleep 5
echo "= Writing u-boot FIT image for $TARGET .... on media $MEDIA"
dd if=$PREFIX/usr/share/uboot/$TARGET/u-boot.itb of=$MEDIA seek=16384; sync; sleep 5
# set console for Rockchips
SYSCON=ttyS2,1500000n8
[root@kodi ~]# arm-image-installer --image /home/jan/Downloads/Fedora-Minimal-32-1.6.aarch64.raw.xz --media /dev/mmcblk0 --target rock960-rk3399
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "3"
creationTimestamp: "2020-02-24T16:25:43Z"
generation: 3
labels:
core.crossplane.io/parent-group: stacks.crossplane.io
core.crossplane.io/parent-kind: Stack