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