diff --git a/charts/cloud-server/Chart.yaml b/charts/cloud-server/Chart.yaml index 598406f..de3f0e1 100644 --- a/charts/cloud-server/Chart.yaml +++ b/charts/cloud-server/Chart.yaml @@ -6,4 +6,4 @@ maintainers: - email: dustin@elegantthemes.com name: Elegant Themes name: cloud-server -version: 0.0.2 +version: 0.0.3 diff --git a/charts/cloud-server/app-readme.md b/charts/cloud-server/app-readme.md new file mode 100644 index 0000000..f984eee --- /dev/null +++ b/charts/cloud-server/app-readme.md @@ -0,0 +1 @@ +Cloud Server diff --git a/charts/cloud-server/questions.yml b/charts/cloud-server/questions.yml new file mode 100644 index 0000000..660bb88 --- /dev/null +++ b/charts/cloud-server/questions.yml @@ -0,0 +1,3 @@ +questions: +# - variable: s3_bucket_name +# label: S3 Bucket Name diff --git a/charts/cloud-server/templates/cloud-server.yml b/charts/cloud-server/templates/cloud-server.yml index 6567408..1b357ef 100644 --- a/charts/cloud-server/templates/cloud-server.yml +++ b/charts/cloud-server/templates/cloud-server.yml @@ -46,6 +46,12 @@ spec: volumeMounts: - name: workspace mountPath: /workspace + - name: config + mountPath: /config + readOnly: true volumes: - name: workspace emptyDir: {} + - name: config + secret: + secretName: wp-config diff --git a/charts/cloud-server/templates/ingress.yml b/charts/cloud-server/templates/ingress.yml index 80efb1e..3967d86 100644 --- a/charts/cloud-server/templates/ingress.yml +++ b/charts/cloud-server/templates/ingress.yml @@ -24,7 +24,6 @@ data: SERVER_PORT: $server_port SERVER_NAME: $server_name REDIRECT_STATUS: "200" - --- apiVersion: networking.k8s.io/v1beta1 @@ -46,10 +45,10 @@ metadata: spec: tls: - hosts: - - cloud.staging.etdevs.com + - {{ .Values.VIRTUAL_HOST }} secretName: cloud-server-tls rules: - - host: cloud.staging.etdevs.com + - host: {{ .Values.VIRTUAL_HOST }} http: paths: - path: ^(/api/[^/]+)?(/wp-.*) diff --git a/charts/cloud-server/templates/wp-config.yml b/charts/cloud-server/templates/wp-config.yml new file mode 100644 index 0000000..371bf59 --- /dev/null +++ b/charts/cloud-server/templates/wp-config.yml @@ -0,0 +1,50 @@ +apiVersion: v1 +kind: Secret +metadata: + name: wp-config + namespace: cloud-server +stringData: + ADMIN_USER: {{ .Values.ADMIN_USER }} + ADMIN_PASSWORD: {{ .Values.ADMIN_PASSWORD }} + ADMIN_EMAIL: {{ .Values.ADMIN_EMAIL }} + wp-config.php: | +