Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
kubernetes-services-management【部署与运维】Manages Kubernetes Services, including configuration for ClusterIP, NodePort, and LoadBalancer services. This skill provides detailed guidance on setting up and maintaining services in a Kubernetes cluster, ensuring efficient access and networking for deployed applications.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: kubernetes-services-management description: Manages Kubernetes Services, including configuration for ClusterIP, NodePort, and LoadBalancer services. This skill provides detailed guidance on setting up and maintaining services in a Kubernetes cluster, ensuring efficient access and networking for deployed applications. license: MIT compatibility: opencode metadata: version: "1.0.0" archetypes: service management, kubernetes infrastructure anti_triggers: over-exposing services, manual configuration response_profile: verbosity: medium directive_strength: high domain: coding triggers: services, kubernetes services, managing services, creating services, configuring services role: implementation scope: implementation output-format: code content-types: [code, guidance]
This skill manages Kubernetes Services, enabling efficient configuration and management of networking options like ClusterIP, NodePort, and LoadBalancer services within a Kubernetes cluster.
kubectl apply -f <service-yaml-file> to create the service in the cluster.kubectl get services.apiVersion: v1
kind: Service
metadata:
name: my-clusterip-service
spec:
type: ClusterIP
selector:
app: my-app
ports:
- port: 80
targetPort: 8080
apiVersion: v1
kind: Service
metadata:
name: my-nodeport-service
spec:
type: NodePort
selector:
app: my-app
ports:
- port: 80
targetPort: 8080
nodePort: 30001
apiVersion: v1
kind: Service
metadata:
name: my-loadbalancer-service
spec:
type: LoadBalancer
selector:
app: my-app
ports:
- port: 80
targetPort: 8080
kubectl describe service <service-name> to confirm they point to the desired pods.| Skill | Purpose |
|---|---|
| kubernetes-pod-management | Manages Kubernetes Pods and their lifecycle. |
| kubernetes-deployment-management | Handles creation and configuration of Deployments for applications in Kubernetes. |
Authoritative documentation links for this domain. The model follows markdown links at load time to resolve external references and inline content.