# 查看当前k8s支持的对象
kubectl api-versions | grep deployment
kubectl api-versions | grep -i apps
# 修改deployment apiVersion
sed -i 's|extensions/v1beta1|apps/v1|g' ./templates/deployment.yaml
# 增加 selector
spec: [...] selector: matchLabels: app: {{ template "metabase.name" . }} [...]