41 lines
828 B
YAML
41 lines
828 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: app
|
|
namespace: bj-pfd2
|
|
labels:
|
|
app: app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: app
|
|
template:
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
app: app
|
|
spec:
|
|
#nodeSelector:
|
|
# region: us
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: region
|
|
operator: NotIn
|
|
values:
|
|
- cn
|
|
containers:
|
|
- name: app
|
|
image: songtianlun/bj-pfd2:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 6010
|
|
name: web
|
|
env:
|
|
- name: TZ
|
|
value: "Asia/Shanghai"
|
|
|