Skip to content

Instantly share code, notes, and snippets.

@warroyo
warroyo / otel.yaml
Created March 18, 2025 13:33
otel install
apiVersion: v1
kind: Namespace
metadata:
name: otel
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: otel
@warroyo
warroyo / autounattend.xml
Created March 13, 2025 21:00
working autounattend for server 2019
<?xml version="1.0" encoding="utf-8"?>
<!--*************************************************
Windows Server 2019 Answer File Generator
Created using Windows AFG found at:
;http://www.windowsafg.com
Installation Notes:
- We currently assume your image is using a licesnsed media, and hard code product keys accordingly
- ProductKey: must be removed if using an eval version
- The OOBE and UserAccounts sections: might be removed for administrator details
@warroyo
warroyo / build-controller-pkg.yml
Created January 10, 2025 17:36
Temp workaround for dockefile build issue
---
apiVersion: data.packaging.carvel.dev/v1alpha1
kind: Package
metadata:
annotations:
capability.tanzu.vmware.com/provides: |
[{ "name": "build.tanzu.vmware.com",
"displayName": "Tanzu Build Controller",
"description": "Tanzu Build Controller provides builds on-cluster for Tanzu Build.",
"vendor": "VMware Tanzu",
@warroyo
warroyo / kapp-0.48.2-pkg.yml
Created December 12, 2024 15:49
kapp 0.48 pkg
apiVersion: data.packaging.carvel.dev/v1alpha1
kind: Package
metadata:
name: kapp-controller.tanzu.vmware.com.0.48.2+vmware.1-tkg.1
namespace: default
spec:
licenses:
- 'VMware’s End User License Agreement (Underlying OSS license: Apache License 2.0)'
refName: kapp-controller.tanzu.vmware.com
releasedAt: "2023-10-31T09:35:38Z"
@warroyo
warroyo / ako-helm.yml
Created February 29, 2024 16:24
ako in tkgs
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: ako
namespace: tanzu-continuousdelivery-resources
spec:
type: "oci"
interval: 5m0s
url: oci://projects.registry.vmware.com/ako/helm-charts
---
---
apiVersion: carto.run/v1alpha1
kind: Workload
metadata:
labels:
app.kubernetes.io/part-of: company-api
apps.tanzu.vmware.com/has-tests: "true"
apps.tanzu.vmware.com/workload-type: web
apis.apps.tanzu.vmware.com/register-api: "true"
name: company-api
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
annotations:
apps.tanzu.vmware.com/pipeline: test
labels:
apps.tanzu.vmware.com/custom-test: 'true'
name: go-tekton-test
namespace: tap-workload
spec:
@warroyo
warroyo / server-template.yml
Last active July 11, 2023 22:57
server template with probes and fix for kapp labels
apiVersion: carto.run/v1alpha1
kind: ClusterConfigTemplate
metadata:
annotations:
doc: |
This template consumes an input named config which contains a
PodTemplateSpec and returns a ConfigMap which contains a
"delivery.yml" which contains a manifests for a Kubernetes
Deployment which will run the templated pod, and a "service.yml"
Kubernetes Service to expose the pods on the network.
@warroyo
warroyo / server-template-probes.yml
Created June 27, 2023 20:38
workload template to support readiness probes
apiVersion: carto.run/v1alpha1
kind: ClusterConfigTemplate
metadata:
annotations:
doc: |
This template consumes an input named config which contains a
PodTemplateSpec and returns a ConfigMap which contains a
"delivery.yml" which contains a manifests for a Kubernetes
Deployment which will run the templated pod, and a "service.yml"
Kubernetes Service to expose the pods on the network.
SOURCE_IMAGE = 'dev.registry.pivotal.io/warroyo/iterate/sme-fe-code'
LOCAL_PATH = os.getenv("LOCAL_PATH", default='.')
NAMESPACE = os.getenv("NAMESPACE", default='default')
k8s_custom_deploy(
'sme-frontend-code',
apply_cmd="tanzu apps workload apply -f config/workload.yaml" +
" --local-path " + LOCAL_PATH +
" --source-image " + SOURCE_IMAGE +
" --namespace " + NAMESPACE +