1234567891011121314151617181920212223242526272829303132333435363738 |
- 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
- imagePullPolicy: "Always"
- ports:
- - containerPort: 25
- - containerPort: 143
|