k8s集群
https://kubernetes.io/docs/concepts/configuration/configmap/

创建证书

kubectl create secret tls my-tls --cert=/ssl/xx.pem  --key=/ssl/xx.key
kubectl create secret tls my-tls --cert=/ssl/xx.pem  --key=/ssl/xx.key   -n default

删除证书
kubectl delete secret my-tls

#查看证书
k get secret

证书使用

xx.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress 
spec:
  tls:
  - secretName: my-tls
    hosts:
      - "test.x.cn"
  rules:
  - host: "test.x.cn"

更新证书

k delete secret jobpi-ssl
cd /dataN/tls
k create secret tls jobpi-ssl --cert=jobpi.cn.pem  --key=jobpi.cn.key   -n default