apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: qwap-performance-api
version: product
name: qwap-performance-api-product
spec:
replicas: 1
selector:
matchLabels:
app: qwap-performance-api
version: product
template:
metadata:
annotations:
sidecar.istio.io/inject: "true"
labels:
app: qwap-performance-api
version: product
spec:
containers:
- name: qwap-performance-api
image: xxx:1.0.0
imagePullPolicy: Always
volumeMounts:
- mountPath: /jmeter/home
name: cephfs
ports:
- containerPort: 9000
protocol: TCP
resources:
requests:
memory: "1Gi"
cpu: "300m"
limits:
memory: "3Gi"
cpu: "3000m"
volumes:
- name: cephfs
cephfs:
path: /xty-test
monitors:
- 192.168.12.137:6789
- 192.168.12.138:6789
- 192.168.12.139:6789
user: admin
secretRef:
name: ceph-admin-secret
readOnly: false
需创建一个ceph-admin-secret
kind: Secret
apiVersion: v1
metadata:
name: ceph-admin-secret
data:
secret: xxx
type: Opaque