#!/bin/bash
#***************************************************************#
# ScriptName: createopspod.sh
# Author: xhy
# Create Date: 2025-04-17 13:45
# Modify Author: xhy
# Modify Date: 2025-04-17 13:53
# Version: v1
#***************************************************************#

NAMESPACE="sonarqube"
PODNAME="xhyops"
IMAGE="registry.cn-hangzhou.aliyuncs.com/xhyimages/xhyops:v2"
COMMAND="bash"
LABELS="app=ops-pod"

kubectl -n ${NAMESPACE} run ${PODNAME} --rm -it \
  --image=${IMAGE} --labels=${LABELS} -- ${COMMAND}
