k8s之java-deployment
- kind: Deployment
- apiVersion: apps/v1
- metadata:
- name: pejava-deployment
- namespace: default
- labels:
- app: pejava
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: pejava
- template:
- metadata:
- labels:
- app: pejava
- spec:
- volumes:
- - name: git-storage
- persistentVolumeClaim:
- claimName: pejava-pvc
- containers:
- - name: pejava
- image: 'pejava:20210611'
- ports:
- - containerPort: 2030
- protocol: TCP
- resources: {}
- volumeMounts:
- - name: git-storage
- mountPath: /git_repo
- terminationMessagePolicy: File
- imagePullPolicy: IfNotPresent
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · Java基础问题13个,你都会哪些?
- · Linux安装NFS
- · k3s+kuboard快速搭建K8s生产环境集群
- · 部署docker+k3s+rancher2
- · 部署k3s+KubeSphere
- · es+filebeat+elastalert2实现异常邮件提醒
- · centos7安装k8s集群(2022版)
- · k8s之Service
- · k8s之PersistentVolume&PersistentVolumeClaim
- · k8s之ReplicationController
- · k8s deployment with persistentVolume
- · k8s之mongo-deployment