docker-kubectl-deploy
Docker Kubectl Deploy
使用 docker build → docker push → kubectl set image 的固定流程,把新镜像发布到 Kubernetes 环境,并等待滚动更新完成。
Quick Start
- 确认本机已配置:
docker、已docker login对应镜像仓库;kubectl、已配置目标集群kubeconfig - 需要的信息:镜像仓库(不带 tag)、K8s 的
context/namespace/deployment/container、tag(可选) - 优先使用脚本:
bash scripts/build_push_kubectl.sh --help
Workflow (推荐)
- 选择镜像引用:
<image-repo>:<tag>(tag 默认自动生成) - Build:
docker build -t <image-repo>:<tag> ... - Push:
docker push <image-repo>:<tag> - Deploy:
kubectl set image deployment/<deployment> <container>=<image-repo>:<tag> -n <namespace> - 验证:
kubectl rollout status deployment/<deployment> -n <namespace>
More from oldwinter/skills
personal-productivity
Build a Personal Productivity System Pack (weekly timebox plan, capture+to-do system, daily/weekly review rituals, and a 7-day rollout). Use for timeboxing, calendar blocking, and staying on top of high-volume leadership work. Category: Career.
341github-cli
This skill should be used when users need to interact with GitHub via the gh CLI. It covers repository management (create, delete, clone, fork), CI/CD workflows (GitHub Actions), Issues, Pull Requests, Releases, and other GitHub operations. Triggers on requests mentioning GitHub, repos, PRs, issues, actions, or workflows.
116aws-cli
This skill should be used when users need to interact with AWS services via CLI. It covers all AWS services including EC2, ECS, EKS, Lambda, S3, RDS, DynamoDB, VPC, Route53, CloudFront, Bedrock, Support, Billing, and more. Supports querying, creating, modifying, deleting resources, monitoring, debugging, and cost analysis. Triggers on requests mentioning AWS, cloud resources, or specific AWS service names.
106positioning-and-messaging
Create product positioning and messaging frameworks with validation and iteration guidance.
82kubectl
This skill should be used when users need to interact with Kubernetes clusters via kubectl CLI. It covers pod management, deployment operations, log viewing, debugging, resource monitoring, scaling, ConfigMaps, Secrets, Services, and all standard kubectl operations. Supports multiple clusters (production, staging, local k3s) with predefined aliases. Triggers on requests mentioning Kubernetes, k8s, pods, deployments, containers, or cluster operations.
71setting-okrs-and-goals
Set measurable OKRs and goals with clear alignment, guardrails, and review cadence.
51