update secrect
Some checks failed
Build NGINX on Ubuntu / build-and-push (push) Successful in 1m7s
Build NGINX on Ubuntu / deploy-to-kubernetes (push) Failing after 5m6s

This commit is contained in:
huangzhiqiang 2025-06-09 16:28:39 +08:00
parent d8eb874303
commit dc0a5468f7
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ create_harbor_secret() {
# 创建新的 secret # 创建新的 secret
kubectl create secret docker-registry harbor-registry-secret \ kubectl create secret docker-registry harbor-registry-secret \
--docker-server="$HARBOR_REGISTRY" \ --docker-server="http://$HARBOR_REGISTRY" \
--docker-username="$HARBOR_USERNAME" \ --docker-username="$HARBOR_USERNAME" \
--docker-password="$HARBOR_PASSWORD" \ --docker-password="$HARBOR_PASSWORD" \
--namespace="$namespace" --namespace="$namespace"

View File

@ -71,7 +71,7 @@ metadata:
app: nginx app: nginx
version: v1 version: v1
spec: spec:
replicas: 3 replicas: 1
strategy: strategy:
type: RollingUpdate type: RollingUpdate
rollingUpdate: rollingUpdate: