- Create your kind cluster (suit yourself https://kind.sigs.k8s.io/docs/user/configuration/)
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
| # Source: https://gist.github.com/a0a7ff04a7e22409cdfd8b466edb4e48 | |
| ################################################# | |
| # Argo Events # | |
| # Event-Based Dependency Manager for Kubernetes # | |
| # https://youtu.be/sUPkGChvD54 # | |
| ################################################# | |
| ######### | |
| # Setup # |
| # Source: https://gist.github.com/820aecf0799d679d9082eef00d07b515 | |
| ############################################################################# | |
| # Bitnami Sealed Secrets # | |
| # How To Store Kubernetes Secrets In Git Repositories Without Getting Fired # | |
| # https://youtu.be/xd2QoV6GJlc # | |
| ############################################################################# | |
| # Referenced videos: | |
| # - What Is GitOps And Why Do We Want It?: https://youtu.be/qwyRJlmG5ew |
| FROM alpine:3.12 | |
| RUN apk add --no-cache curl jq bash | |
| CMD ["/bin/sh"] |
| package main | |
| import ( | |
| "context" | |
| "encoding/base64" | |
| "flag" | |
| "fmt" | |
| "log" | |
| container "google.golang.org/api/container/v1beta1" |
| apiVersion: kyverno.io/v1 | |
| kind: ClusterPolicy | |
| metadata: | |
| name: check-resources | |
| spec: | |
| validationFailureAction: enforce | |
| rules: | |
| - name: check-pod-resources | |
| match: | |
| resources: |
| admin: | |
| access_log_path: /dev/stdout | |
| address: | |
| socket_address: { address: 0.0.0.0, port_value: 9901 } | |
| static_resources: | |
| listeners: | |
| - name: listener1 | |
| address: | |
| socket_address: { address: 0.0.0.0, port_value: 51051 } |
| #!/bin/bash | |
| set -e | |
| CH=latest | |
| echo Installing Server 1 | |
| k3sup install --user pi --ip 192.168.2.147 \ | |
| --k3s-channel $CH \ | |
| --cluster \ |
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
| stages: | |
| - build | |
| - release | |
| build_image: | |
| only: | |
| - master | |
| image: registry.gitlab.com/majorhayden/container-buildah | |
| stage: build | |
| variables: |
KIND runs Kubernetes cluster in Docker, and leverages Docker networking for all the network features: port mapping, IPv6, containers connectivity, etc.
KIND uses a docker user defined network.
It creates a bridge named kind