Skip to content

Commit

Permalink
Update Helm Chart for cloud-server
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed May 20, 2020
1 parent 0dbd3a2 commit 7b662b6
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 47 deletions.
2 changes: 1 addition & 1 deletion charts/cloud-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ maintainers:
- email: dustin@elegantthemes.com
name: Elegant Themes
name: cloud-server
version: 0.0.3
version: 0.0.4
109 changes: 63 additions & 46 deletions charts/cloud-server/templates/cloud-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,73 @@
apiVersion: v1
kind: Service
metadata:
name: cloud-server
namespace: cloud-server
name: cloud-server
namespace: cloud-server
spec:
selector:
app: cloud-server
ports:
- port: 9000
targetPort: 9000
name: fastcgi
selector:
app: cloud-server
ports:
- port: 9000
targetPort: 9000
name: fastcgi
---

apiVersion: apps/v1
kind: Deployment
metadata:
name: cloud-server
namespace: cloud-server
labels:
app: cloud-server
spec:
replicas: 3
selector:
matchLabels:
app: cloud-server
template:
metadata:
labels:
name: cloud-server
namespace: cloud-server
labels:
app: cloud-server
spec:
containers:
- name: cloud-server
image: elegantthemes/cloud-server:{{ .Chart.appVersion }}
ports:
- name: fastcgi
containerPort: 9000
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 1000m
memory: 600Mi
volumeMounts:
- name: workspace
mountPath: /workspace
- name: config
mountPath: /config
readOnly: true
volumes:
- name: workspace
emptyDir: {}
- name: config
secret:
secretName: wp-config
spec:
replicas: 3
selector:
matchLabels:
app: cloud-server
template:
metadata:
labels:
app: cloud-server
spec:
containers:
- name: cloud-server
image: 'elegantthemes/cloud-server:{{ .Chart.appVersion }}'
livenessProbe:
httpGet:
host: {{ .Values.VIRTUAL_HOST }}
port: 443
scheme: HTTPS
periodSeconds: 30
ports:
- name: fastcgi
containerPort: 9000
readinessProbe:
tcpSocket:
port: fastcgi
periodSeconds: 10
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 1000m
memory: 600Mi
startupProbe:
exec:
command:
- cat
- {{ .Values.VIRTUAL_ROOT }}/healthz
failureThreshold: 30
periodSeconds: 10
volumeMounts:
- name: workspace
mountPath: /workspace
- name: config
mountPath: /config
readOnly: true
volumes:
- name: workspace
emptyDir: {}
- name: config
secret:
secretName: wp-config

0 comments on commit 7b662b6

Please sign in to comment.