当前位置:网站首页>PostgreSQL k8s deployment template
PostgreSQL k8s deployment template
2022-07-23 13:03:00 【study_ Little Daren】
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres-sonar
namespace: sonarqube
labels:
app: postgres-sonar
spec:
replicas: 1
selector:
matchLabels:
app: postgres-sonar
template:
metadata:
labels:
app: postgres-sonar
spec:
containers:
- name: postgres-sonar
image: postgres:11.4
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5432
env:
- name: POSTGRES_DB
value: “sonarDB”
- name: POSTGRES_USER
value: “sonarUser”
- name: POSTGRES_PASSWORD
value: “12345678”
resources:
limits:
cpu: 1000m
memory: 2048Mi
requests:
cpu: 500m
memory: 1024Mi
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
volumes:
- name: data
persistentVolumeClaim:
claimName: postgres-data
apiVersion: v1
kind: Service
metadata:
name: postgres-sonar
namespace: sonarqube
labels:
app: postgres-sonar
spec:
clusterIP: None
ports:
- port: 5432
protocol: TCP
targetPort: 5432
selector:
app: postgres-sonar
边栏推荐
猜你喜欢

SAR成像之点目标仿真(二)—— Matlab仿真

Hcia---03 ENSP usage, DHCP, router

HCIA----07 ACL-Net

C language can also write Plants vs. Zombies

TI单芯片毫米波雷达xWR1642硬件架构研究

Gameframework:resource loading, resource loading, dependency loading, task pool, object pool, reference count

Single arm routing configuration instance learning record

HCIA----07 ACL-Net

DHCP 配置实例学习记录

Frame relay network configuration example learning record
随机推荐
4D毫米波雷达硬件系统架构
HCIA----05 RIP
Leetcode problem solution summary
Make local apt source offline installation
Rhcsa - - parcourir le contenu du fichier, couper, uniq, trier, utiliser les commandes.tr
Eth-Trunk 配置实例学习记录
PPP configuration instance learning record
为什么要搭建本地yum仓库?
雷达导论PART VII.2 成像方法
NFS service deployment notes
Simple use of psutil monitoring
Jupyter notebook添加已存在的虚拟环境
动态RIP配置
STP configuration instance learning record
Hcia---03 ENSP usage, DHCP, router
C randomly generate a score to judge its grade (excellent, good, medium, poor, failed)
时间复杂度总结(Ο是渐进上界,Ω是渐进下界,p,np,np-hard,NPC问题)
Rhcsa -- file content browsing, cut, uniq, sort,.Tr command use
Pod 拓扑约束
SAR成像之点目标仿真(三)—— 仿真结果分析