2022-02-25:k8s安装zookeeper,yaml如何写?找份北京的golang后端工作,35岁,有人收我吗?
Posted 福大大架构师每日一题
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2022-02-25:k8s安装zookeeper,yaml如何写?找份北京的golang后端工作,35岁,有人收我吗?相关的知识,希望对你有一定的参考价值。
2022-02-25:k8s安装zookeeper,yaml如何写?找份北京的golang后端工作,35岁,有人收我吗?
答案2022-02-25:
yaml如下:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: zookeeper
name: zookeeper
namespace: moonfdd
spec:
replicas: 1
selector:
matchLabels:
app: zookeeper
template:
metadata:
labels:
app: zookeeper
spec:
containers:
- image: zookeeper
imagePullPolicy: IfNotPresent
name: zookeeper
# volumeMounts:
# - mountPath: /opt/zookeeper/data
# name: data
# volumes:
# - name: data
# hostPath:
# path: /root/k8s/moonfdd/zookeeper/opt/zookeeper/data
# type: DirectoryOrCreate
---
apiVersion: v1
kind: Service
metadata:
labels:
app: zookeeper
name: zookeeper
namespace: moonfdd
spec:
ports:
- port: 2181
protocol: TCP
targetPort: 2181
selector:
app: zookeeper
type: NodePort
结果如下:
以上是关于2022-02-25:k8s安装zookeeper,yaml如何写?找份北京的golang后端工作,35岁,有人收我吗?的主要内容,如果未能解决你的问题,请参考以下文章
云原生zookeeper + kafka on k8s 环境部署
(十三)从零开始搭建k8s集群——使用KubeSphere管理平台搭建一个高可用的zookeeper版kafka集群服务
[云原生专题-54]:Kubesphere云治理-操作-通过K8S的应用仓库一键部署微服务应用- 分布式协调服务中间件zookeeper的安装与部署
2022-02-25 WPF上位机 125-OPC协议UA通信之UA-.NETStandard