yaml生成:
kubectl create deployment bitbucket --image=atlassian/bitbucket-server --dry-run -o yaml >bitbucket-deployment.yaml
kubectl expose deployment bitbucket --port=7990 --type=NodePort --target-port=7990 --name bitbucket --dry-run -o yaml >jenkins-expost.yaml
等同于:
docker run -v /data/atlassian/bitbucket:/var/atlassian/application-data/bitbucket --name="bitbucket" -d -p 7990:7990 -p 7999:7999 atlassian/bitbucket-server