diff --git a/code-for-philly/CronJob/code-for-philly-backups.yaml b/code-for-philly/CronJob/code-for-philly-backups.yaml index d8192e0..671fcf3 100644 --- a/code-for-philly/CronJob/code-for-philly-backups.yaml +++ b/code-for-philly/CronJob/code-for-philly-backups.yaml @@ -1,4 +1,4 @@ -apiVersion: batch/v1beta1 +apiVersion: batch/v1 kind: CronJob metadata: labels: diff --git a/code-for-philly/Deployment/code-for-philly.yaml b/code-for-philly/Deployment/code-for-philly.yaml index d07a4ec..f62edb1 100644 --- a/code-for-philly/Deployment/code-for-philly.yaml +++ b/code-for-philly/Deployment/code-for-philly.yaml @@ -39,10 +39,19 @@ spec: default_timezone = "America/New_York" [sites.default] + handle = "code-for-philly" primary_hostname = "codeforphilly.org" title = "Code for Philly" [core] + + [limit] + memory = "200M" + post = "200M" + execution_time = "30" + + [cache] + size = "512M" - name: HAB_MYSQL value: | app_username = "admin" @@ -70,6 +79,13 @@ spec: - containerPort: 80 name: http protocol: TCP + - containerPort: 3306 + name: mysql + protocol: TCP + resources: + limits: {} + requests: + memory: 300Mi volumeMounts: - mountPath: /hab/svc/site/data name: code-for-philly-site diff --git a/code-for-philly/Service/code-for-philly-site.yaml b/code-for-philly/Service/code-for-philly-site.yaml index 0de062b..ec637c5 100644 --- a/code-for-philly/Service/code-for-philly-site.yaml +++ b/code-for-philly/Service/code-for-philly-site.yaml @@ -14,6 +14,9 @@ spec: - name: http port: 80 protocol: TCP + - name: mysql + port: 3306 + protocol: TCP selector: app.kubernetes.io/instance: code-for-philly app.kubernetes.io/name: code-for-philly