算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
kubernetes-specialist【设计与创意】Use when managing Kubernetes clusters, debugging Pods and workloads, designing Helm charts, reviewing manifests, or improving deployment, scaling, and observability practices.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
kubectl get pods 确认状态(Pending, Error, CrashLoopBackOff)。kubectl describe pod <name> 查看事件日志(Events),定位调度失败或探针失败原因。kubectl logs <name> [-c container] [--previous] 查看标准输出/错误流。kubectl exec -it <name> -- /bin/sh 进入容器内部排查(如网络连通性)。kubectl debug 注入诊断容器。{{ .Values.xxx }} 提取配置,支持多环境部署(values-dev.yaml, values-prod.yaml)。Chart.yaml 管理子 Chart 依赖。pre-install, post-upgrade 等 Hooks 处理数据库迁移或清理任务。# 查看所有 Namespace 下异常的 Pod
kubectl get pods -A --field-selector=status.phase!=Running
# 追踪实时日志并显示时间戳
kubectl logs -f <pod-name> --timestamps
# 查看资源占用排行
kubectl top nodes
kubectl top pods
# 导出资源定义的干净版本(去除 runtime 信息)
kubectl get deployment <name> -o yaml | kubectl-neat > deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: main
image: my-app:v1.2.3
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "512Mi"
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 8080
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: my-app-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: my-app
minReplicas: 2
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70