新增secret

BAIZE_PARTY_TYPE=CENTER

cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: nvpc-apps-01-test-secret01
namespace: nvpc-apps-01
type: Opaque
data:
BAIZE_PARTY_TYPE: $(echo -n "$BAIZE_PARTY_TYPE" | base64)
EOF

kubectl get secret -n nvpc-apps-01|grep nvpc-apps-01-test-secret01

posted @ 2025-04-21 17:12  牧之丨  阅读(6)  评论(0)    收藏  举报