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