当前位置:网站首页>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
边栏推荐
- 雷达导论专栏总目录
- Copy, paste and drag files between VMware virtual machine and host
- HCIA----05 RIP
- 2020-09-20
- C#输入一个字母,判断其大小写
- Summary of basic SQL operations
- 雷达导论PART VII.1 雷达与分辨率
- C #: quick sort. If there is the same number, it will be ignored, and then continue the previous search direction to find the next number that meets the requirements for replacement
- TI单芯片毫米波雷达代码走读(二十五)—— 角度维(3D)处理流程
- Default routing configuration instance learning record
猜你喜欢

Eth trunk configuration instance learning record

DNS domain name resolution service

4D毫米波雷达硬件系统架构

课程设计-推箱子C#(win form)

Unity3d HD rendering pipeline cannot play video on the model

Eth-Trunk 配置实例学习记录

DHCP principle and configuration

Default routing configuration instance learning record

静态扩展配置

HCIA----01互联网的初认识
随机推荐
静态路由配置实例学习记录
Three layer switching configuration example learning record
Pod topology constraints
openvpn部署
Single arm routing configuration instance learning record
0 backtracking / dynamic programming medium leetcode526. Beautiful arrangement
【无标题】
ZABBIX monitoring detailed installation to deployment
雷达导论PART VII.4 SAR系统设计
DHCP 配置实例学习记录
vlan配置实例学习记录
NFS service deployment notes
C#输出斐波那契数列
OSPF multi area configuration instance learning record
App compilation and packaging deployment manual
平方根立方根
DNS domain name resolution service
HCIA----05 RIP
单臂路由配置实例学习记录
Solution rapide: xshell ne peut pas glisser dans un dossier ou un paquet