Skip to content

Instantly share code, notes, and snippets.

View vrabbi's full-sized avatar

Scott Rosenberg vrabbi

View GitHub Profile
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: capv-static-ip-leader-election-role
namespace: capv-system
rules:
- apiGroups:
- ""
resources:
@vrabbi
vrabbi / INSTRUCTIONS.md
Last active July 6, 2022 19:12
TCE 0.12.x and TKGm 1.5.x on vSphere - Static IP configuration

Enabling Static IPs for VMs with TCE / TKGm on vSphere

This is experimental and your mileage may vary

Steps

  1. Install TCE Management Cluster - not documented as nothing is different then usual
  2. Install Metal3 IPAM Provider
  3. Install CAPV IPAM Controller from spectrocloud
  4. Add YTT Overlays
  5. Create cluster config file
  6. Deploy clusters
#@data/values
---
workload:
metadata:
name: test-workload
namespace: default
params:
chart_name: tanzu-java-web-app
chart_repo:
name: demo-repo
@vrabbi
vrabbi / TAP_ECR_POC.md
Created December 6, 2022 22:59
This procedure is a POC of how one could have cartographer stamp out ECR Repo resources for our workloads as needed.

Adding ECR Repo Creation To TAP

This procedure is a POC of how one could have cartographer stamp out ECR Repo resources for our workloads as needed.

The Reason

ECR does not allow auto creation of repositories on push and every repo must be created in advance. This gives a very bad UX when using TAP where every workload typically needs 1 or 2 repos depending on the configuration.

What was the issue

The initial idea was to simply create a crossplane composition and stamp that out via a cartographer cluster template, however this is not possible as crossplane makes changes to the spec of the resources it manages, which makes cartographer try and restamp as it believes its desired state is the correct state, and we end up in an endless loop of the controllers fighting for control.

The solution

#@data/values
---
build:
stages: ["dev", "stage", "prod"]
repo: ["repo-dev", "repo-stage", "repo-prod"]
params: ["dev", "stage", "prod"]

TAP Production Supply Chain Diagram

flowchart TD
subgraph "Legend"
    red("Custom - Not officially supported")
    style red fill:red,color:black
    blue{A Choice}
    style blue fill:blue,color:white
    black(Supported - Not Default)
@vrabbi
vrabbi / README.md
Last active February 14, 2023 08:44

Deploy External DNS

Microsoft DNS

Secure Updates Using RFC3645 (GSS-TSIG)

Prerequisites:

  • Create a DNS zone
  • Enable secure dynamic updates for the zone
@vrabbi
vrabbi / INSTRUCTIONS.md
Last active February 19, 2023 18:20
TAP Install - Dev
  1. Create ns
kubectl create ns tap-install
  1. Add Package repository
tanzu package repository add tanzu-tap-repository \
  --url ${INSTALL_REGISTRY_HOSTNAME}/tap/tap-packages:1.4.0 \
  --namespace tap-install
@vrabbi
vrabbi / PRISMA_DOCS.md
Last active March 26, 2023 17:49
prisma-scanner-tap-overlays

Update the overlay

You need to update values for http_proxy, https_proxy and no_proxy at the top of the overlay file to fix the environment specific values.

Update the package install

kctrl package installed update -n tap-install -i prisma -p scanning.apps.tanzu.vmware.com --version 0.1.4-alpha.12 --ytt-overlay-file prisma-overlay.yaml