k8s之mongo-deployment
- kind: Deployment
- apiVersion: apps/v1
- metadata:
- name: mongo-deployment
- namespace: default
- labels:
- app: mongo
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: mongo
- template:
- metadata:
- labels:
- app: mongo
- spec:
- containers:
- - name: mongo
- image: mongo
- ports:
- - containerPort: 27017
- protocol: TCP
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · Linux安装NFS
- · k3s+kuboard快速搭建K8s生产环境集群
- · 部署docker+k3s+rancher2
- · 部署k3s+KubeSphere
- · es+filebeat+elastalert2实现异常邮件提醒
- · docker 安装mongo后无法找到mongo命令,mongo command not found.
- · centos7安装k8s集群(2022版)
- · k8s之Service
- · k8s之PersistentVolume&PersistentVolumeClaim
- · k8s之ReplicationController
- · k8s deployment with persistentVolume
- · k8s之java-deployment