add apiVersion and kind in README.md for examples

This commit is contained in:
Jingfang Liu
2018-12-18 11:22:18 -08:00
parent 64372a786b
commit 0d14e89549
10 changed files with 40 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ curl -s -o "$BASE/#1.yaml" "https://raw.githubusercontent.com\
/{deployment,service}.yaml"
cat <<'EOF' >$BASE/kustomization.yaml
apiVersion: v1
kind: Kustomization
commonLabels:
app: hello
resources:
@@ -59,6 +61,8 @@ OVERLAYS=$DEMO_HOME/overlays
mkdir -p $OVERLAYS/staging
cat <<'EOF' >$OVERLAYS/staging/kustomization.yaml
apiVersion: v1
kind: Kustomization
namePrefix: staging-
nameSuffix: -v1
commonLabels: