12345678910111213141516171819202122232425262728293031323334353637 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: bridge
- spec:
- replicas: 1
- selector:
- matchLabels:
- name: bridge
- template:
- metadata:
- labels:
- name: bridge
- spec:
- affinity:
- nodeAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - weight: 1
- preference:
- matchExpressions:
- - key: kubernetes.io/arch
- operator: In
- values:
- - amd64
- volumes:
- - name: data
- persistentVolumeClaim:
- claimName: bridge-pvc
- containers:
- - name: bridge
- volumeMounts:
- - mountPath: "/root"
- name: data
- image: shenxn/protonmail-bridge:latest
- ports:
- - containerPort: 25
- - containerPort: 143
|