Skip to content

Instantly share code, notes, and snippets.

@making
Last active December 13, 2021 04:51
Show Gist options
  • Save making/cacd5bfa1c64c64af193995f2d4abd22 to your computer and use it in GitHub Desktop.
Save making/cacd5bfa1c64c64af193995f2d4abd22 to your computer and use it in GitHub Desktop.
ytt理解チェック
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: demo
name: demo
spec:
replicas: 1
selector:
matchLabels:
app: demo
template:
metadata:
labels:
app: demo
spec:
containers:
- image: ghcr.io/making/hello-tanzu
name: hello-tanzu
#@ load("@ytt:overlay", "overlay")
---
#! ℹ️ 以下のoutputになるようにoverlayを書いてください
#! apiVersion: apps/v1
#! kind: Deployment
#! metadata:
#! labels:
#! app: demo
#! name: demo
#! spec:
#! replicas: 3
#! selector:
#! matchLabels:
#! app: demo
#! template:
#! metadata:
#! labels:
#! app: demo
#! hello: ytt
#! spec:
#! containers:
#! - image: harbor.example.com/making/hello-tanzu
#! name: hello-tanzu
#! env:
#! - name: INFO_MESSAGE
#! value: "Hello YTT!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment