diff options
| -rw-r--r-- | kubernetes/namespaces/web/ghost/README.md | 7 | ||||
| -rw-r--r-- | kubernetes/namespaces/web/ghost/deployment.yaml | 43 | ||||
| -rw-r--r-- | kubernetes/namespaces/web/ghost/ingress.yaml | 25 | ||||
| -rw-r--r-- | kubernetes/namespaces/web/ghost/service.yaml | 10 | ||||
| -rw-r--r-- | kubernetes/namespaces/web/ghost/volume.yaml | 14 | 
5 files changed, 0 insertions, 99 deletions
diff --git a/kubernetes/namespaces/web/ghost/README.md b/kubernetes/namespaces/web/ghost/README.md deleted file mode 100644 index fee4f8f..0000000 --- a/kubernetes/namespaces/web/ghost/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Ghost - -This folder contains the deployment manifests for Ghost, the CMS we use for https://blog.pythondiscord.com/. - -There should be no additional configuration required, there is a setup process on the domain when Ghost first boots, you can reach it by going to https://blog.pythondiscord.com/ghost/ immediately after starting the deployment. - -To deploy this application run `kubectl apply -f ghost` from the root directory of this repository. This will create a deployment, service ingress and persistent volume. diff --git a/kubernetes/namespaces/web/ghost/deployment.yaml b/kubernetes/namespaces/web/ghost/deployment.yaml deleted file mode 100644 index 8471cfe..0000000 --- a/kubernetes/namespaces/web/ghost/deployment.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: -  name: ghost -  namespace: web -spec: -  replicas: 1 -  strategy: -    type: Recreate -  selector: -    matchLabels: -      app: ghost -  template: -    metadata: -      labels: -        app: ghost -    spec: -      securityContext: -        fsGroup: 2000 -        runAsUser: 1000 -        runAsNonRoot: true -      containers: -        - name: ghost -          image: ghost:5.88-alpine -          imagePullPolicy: Always -          ports: -            - containerPort: 2368 -          env: -            - name: url -              value: https://blog.pythondiscord.com -            - name: database__client -              value: sqlite3 -            - name: database__connection__filename -              value: /var/lib/ghost/content/data/ghost.db -          volumeMounts: -            - mountPath: /var/lib/ghost/content -              name: ghost-data -          securityContext: -            readOnlyRootFilesystem: true -      volumes: -        - name: ghost-data -          persistentVolumeClaim: -            claimName: ghost-storage diff --git a/kubernetes/namespaces/web/ghost/ingress.yaml b/kubernetes/namespaces/web/ghost/ingress.yaml deleted file mode 100644 index 74a275b..0000000 --- a/kubernetes/namespaces/web/ghost/ingress.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: -  annotations: -    nginx.ingress.kubernetes.io/auth-tls-verify-client: "on" -    nginx.ingress.kubernetes.io/auth-tls-secret: "kube-system/mtls-client-crt-bundle" -    nginx.ingress.kubernetes.io/auth-tls-error-page: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -  name: ghost -  namespace: web -spec: -  tls: -  - hosts: -      - "*.pythondiscord.com" -    secretName: pythondiscord.com-tls -  rules: -  - host: blog.pythondiscord.com -    http: -      paths: -      - path: / -        pathType: Prefix -        backend: -          service: -            name: ghost -            port: -              number: 2368 diff --git a/kubernetes/namespaces/web/ghost/service.yaml b/kubernetes/namespaces/web/ghost/service.yaml deleted file mode 100644 index 7cb41b9..0000000 --- a/kubernetes/namespaces/web/ghost/service.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: -  name: ghost -  namespace: web -spec: -  ports: -    - port: 2368 -  selector: -    app: ghost diff --git a/kubernetes/namespaces/web/ghost/volume.yaml b/kubernetes/namespaces/web/ghost/volume.yaml deleted file mode 100644 index 3789b39..0000000 --- a/kubernetes/namespaces/web/ghost/volume.yaml +++ /dev/null @@ -1,14 +0,0 @@ -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: -  name: ghost-storage -  labels: -    app: ghost -  namespace: web -spec: -  storageClassName: linode-block-storage-retain -  accessModes: -    - ReadWriteOncePod -  resources: -    requests: -      storage: 10Gi  |