kubernetes - 错误:解析 ssl2.yaml 时出错:将 YAML 转换为 JSON 时出错:yaml:第 22 行:未找到预期的密钥
问题描述
错误:解析 ssl2.yaml 时出错:将 YAML 转换为 JSON 时出错:yaml:第 22 行:未找到预期的密钥
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: ambassador-certs
# cert-manager will put the resulting Secret in the same Kubernetes namespace
# as the Certificate. Therefore you should put this Certificate in the same namespace as Ambassador.
# eg. if you deploy ambassador to ambassador namespace, you need to change to namespace: ambassador
namespace: default
spec:
# naming the secret name certificate ambassador-certs is important because
# ambassador just look for this particular name
secretName: ambassador-certs
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- mikiwiki.es
acme:
config:
- http01:
ingressClass: nginx
domains:
- mikiwiki.es
解决方案
推荐阅读
- asp.net-mvc - jQuery Validation submitHandler 未使用手动添加的 data-val 属性触发
- java - 用java fillRect画一个像子弹计数器一样的电池
- python - 使用 main 函数计算成绩的 Python 程序
- php - 如何在条带会话 Laravel 中添加产品 ID 和名称
- arrays - 从 MIPS 中的指针数组打印元素时出错
- python - 如何授权 Tweepy 在 Twitter 上发帖?
- javascript - 无法从 firebase/storage 导入 { getStorage } 以与 React Native Expo 图像选择器一起使用
- javascript - 如何检查 cookie Testcafe & JS 的值?
- python - AttributeError:模块“skimage”没有属性“__version__”
- django - AWS Polly 生成的 .mp3 文件根本不运行