企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## deployment.yml ``` apiVersion: apps/v1 kind: Deployment metadata: labels: app: zookeeper name: zookeeper spec: replicas: 1 selector: matchLabels: app: zookeeper template: metadata: labels: app: zookeeper spec: containers: - image: wurstmeister/zookeeper imagePullPolicy: IfNotPresent name: zookeeper ports: - containerPort: 2181 ``` ### service.yml ``` apiVersion: v1 kind: Service metadata: labels: app: zookeeper-service name: zookeeper-service spec: type: LoadBalancer ports: - name: zookeeper-port port: 30181 protocol: TCP targetPort: 2181 selector: app: zookeeper ```