Skip to content

Instantly share code, notes, and snippets.

@hermanbanken
hermanbanken / kustomize_vars.md
Created November 22, 2020 13:11
Kustomize Vars example

This was initially posted in an kubernetes-sigs/kustomize issue.

We are using Kustomize's vars feature. Initially we didn't understand how to use it for our purpose, but it is a 100% fit. One example is our Ingress resource, which looks like this:

# file: base/ingress.yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: services
@toughIQ
toughIQ / ocp_elasticsearch_status.sh
Last active June 4, 2024 07:31
OpenShift ElasticSearch Health Status
#!/bin/bash
echo "Switching to Logging project"
oc project openshift-logging
echo
echo
# fetch one ELA pod to run queries against
es_pod=$(oc get pod --selector=component=elasticsearch --no-headers -o jsonpath='{range .items[?(@.status.phase=="Running")]}{.metadata.name}{"\n"}{end}' | head -n1)