Skip to content

Instantly share code, notes, and snippets.

View vrabbi's full-sized avatar

Scott Rosenberg vrabbi

View GitHub Profile
#@data/values
---
build:
stages: ["dev", "stage", "prod"]
repo: ["repo-dev", "repo-stage", "repo-prod"]
params: ["dev", "stage", "prod"]
@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
---
workload:
metadata:
name: test-workload
namespace: default
params:
chart_name: tanzu-java-web-app
chart_repo:
name: demo-repo
@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
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: capv-static-ip-leader-election-role
namespace: capv-system
rules:
- apiGroups:
- ""
resources: