chore: set pod security standard to image registry
This commit is contained in:
@@ -54,6 +54,9 @@ install:
|
|||||||
# Deploy Docker registry to cluster
|
# Deploy Docker registry to cluster
|
||||||
kubectl apply -f ./registry/registry.yaml
|
kubectl apply -f ./registry/registry.yaml
|
||||||
|
|
||||||
|
# Set Pod Security Standard for registry namespace
|
||||||
|
kubectl label namespace registry pod-security.kubernetes.io/enforce=restricted --overwrite
|
||||||
|
|
||||||
# Wait for registry deployment
|
# Wait for registry deployment
|
||||||
echo "Waiting for registry to be ready..."
|
echo "Waiting for registry to be ready..."
|
||||||
kubectl wait --for=condition=available --timeout=60s deployment/registry -n registry
|
kubectl wait --for=condition=available --timeout=60s deployment/registry -n registry
|
||||||
@@ -305,6 +308,9 @@ deploy-registry:
|
|||||||
|
|
||||||
kubectl apply -f ./registry/registry.yaml
|
kubectl apply -f ./registry/registry.yaml
|
||||||
|
|
||||||
|
# Set Pod Security Standard for registry namespace
|
||||||
|
kubectl label namespace registry pod-security.kubernetes.io/enforce=restricted --overwrite
|
||||||
|
|
||||||
echo "Waiting for registry to be ready..."
|
echo "Waiting for registry to be ready..."
|
||||||
kubectl wait --for=condition=available --timeout=60s deployment/registry -n registry
|
kubectl wait --for=condition=available --timeout=60s deployment/registry -n registry
|
||||||
echo "✓ Registry deployed and ready"
|
echo "✓ Registry deployed and ready"
|
||||||
|
|||||||
Reference in New Issue
Block a user