83 lines
1.8 KiB
YAML
83 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: redis-sts
|
|
namespace: busuanzi
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: redis
|
|
template:
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: tencent-gz1
|
|
containers:
|
|
- name: redis
|
|
image: redis:alpine
|
|
ports:
|
|
- containerPort: 6379
|
|
name: redis
|
|
volumeMounts:
|
|
- name: busuanzi-redis-data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: busuanzi-redis-data
|
|
persistentVolumeClaim:
|
|
claimName: busuanzi-redis-tgz1-pvc
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: app
|
|
namespace: busuanzi
|
|
labels:
|
|
app: busuanzi
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: busuanzi
|
|
template:
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
app: busuanzi
|
|
spec:
|
|
nodeSelector:
|
|
region: "cn"
|
|
# kubernetes.io/hostname: tencent-gz1
|
|
containers:
|
|
- name: app
|
|
image: xcsoft/busuanzi:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
name: web
|
|
env:
|
|
- name: WEB_LOG
|
|
value: "true"
|
|
- name: WEB_DEBUG
|
|
value: "false"
|
|
- name: WEB_CORS
|
|
value: "*"
|
|
- name: BSZ_EXPIRE
|
|
value: "0"
|
|
- name: BSZ_SECRET
|
|
value: "Ivk7LQ5LTkRAZguEDn3IeVzvfv6pxO"
|
|
- name: API_SERVER
|
|
value: "https://busuanzi.frytea.com"
|
|
- name: REDIS_ADDRESS
|
|
value: "redis.busuanzi.svc.cluster.local:6379"
|
|
- name: BSZ_PATHSTYLE
|
|
value: "true"
|
|
- name: BSZ_ENCRYPT
|
|
value: "MD516"
|
|
|