This commit is contained in:
86
chart/values.yaml
Normal file
86
chart/values.yaml
Normal file
@@ -0,0 +1,86 @@
|
||||
# Default values for blog.
|
||||
global:
|
||||
enabled: true
|
||||
pvcConfigs:
|
||||
- name: blog-pvc
|
||||
storageClass: "" # 指定存储卷, 不指定则需要集群内存在默认的存储卷
|
||||
storage: "10Gi"
|
||||
accessModes: ReadWriteOnce
|
||||
- name: twikoo-pvc
|
||||
storageClass: "" # 指定存储卷, 不指定则需要集群内存在默认的存储卷
|
||||
storage: "10Gi"
|
||||
accessModes: ReadWriteOnce
|
||||
|
||||
deployment:
|
||||
blog:
|
||||
name: blog
|
||||
labels:
|
||||
app: blog
|
||||
image: registry.cn-hangzhou.aliyuncs.com/offends/hexo
|
||||
tag: hexo-async-offends
|
||||
limits:
|
||||
memory: 512Mi
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /hexo/source/_posts
|
||||
|
||||
blog_gateway:
|
||||
name: blog-gateway
|
||||
labels:
|
||||
app: blog-gateway
|
||||
image: registry.cn-hangzhou.aliyuncs.com/offends/hexo
|
||||
tag: gateway-kubernetes
|
||||
limits:
|
||||
memory: 512Mi
|
||||
env:
|
||||
- name: localhost
|
||||
value: "blog.offends.cn"
|
||||
|
||||
statefulset:
|
||||
blog_twikoo:
|
||||
name: blog-twikoo
|
||||
labels:
|
||||
app: blog-twikoo
|
||||
image: registry.cn-hangzhou.aliyuncs.com/offends/hexo
|
||||
tag: twikoo
|
||||
limits:
|
||||
memory: 128Mi
|
||||
env:
|
||||
- name: TWIKOO_THROTTLE
|
||||
value: "1000"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /app/data
|
||||
|
||||
blog:
|
||||
port: 4000
|
||||
targetPort: 4000
|
||||
type: ClusterIP
|
||||
|
||||
blog_gateway:
|
||||
port: 80
|
||||
targetPort: 80
|
||||
type: ClusterIP
|
||||
|
||||
blog_twikoo:
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
type: ClusterIP
|
||||
|
||||
# kubectl create secret tls blog-tls --key nginx.key --cert nginx.pem -n blog
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
name: blog-ingress
|
||||
host: blog.offends.cn
|
||||
service:
|
||||
name: blog-gateway
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
enabled: true
|
||||
hosts:
|
||||
- blog.offends.cn
|
||||
secretName: blog-tls
|
||||
redirection: #是否开启http重定向到https
|
||||
enabled: true
|
Reference in New Issue
Block a user