Matthias Andreas Benkard | 35751e5 | 2023-03-12 14:52:19 +0100 | [diff] [blame] | 1 | --- |
| 2 | apiVersion: v1 |
| 3 | kind: Service |
| 4 | metadata: |
| 5 | name: foswiki |
| 6 | namespace: mulk |
| 7 | labels: |
| 8 | name: foswiki |
| 9 | k8s-app: foswiki |
| 10 | spec: |
| 11 | selector: |
| 12 | name: foswiki |
| 13 | type: ClusterIP |
| 14 | ports: |
| 15 | - name: http |
| 16 | port: 80 |
| 17 | targetPort: http |
| 18 | protocol: TCP |
| 19 | --- |
Matthias Andreas Benkard | 62bba04 | 2023-03-12 15:08:36 +0100 | [diff] [blame] | 20 | apiVersion: networking.k8s.io/v1 |
Matthias Andreas Benkard | 35751e5 | 2023-03-12 14:52:19 +0100 | [diff] [blame] | 21 | kind: Ingress |
| 22 | metadata: |
| 23 | name: foswiki |
| 24 | namespace: mulk |
| 25 | labels: |
| 26 | name: foswiki |
| 27 | k8s-app: foswiki |
| 28 | annotations: |
Matthias Andreas Benkard | 35751e5 | 2023-03-12 14:52:19 +0100 | [diff] [blame] | 29 | ingress.kubernetes.io/ssl-proxy-headers: X-Forwarded-Proto:https |
| 30 | ingress.kubernetes.io/custom-request-headers: X-Forwarded-Proto:https||X-Forwarded-Port:443 |
Matthias Andreas Benkard | 62bba04 | 2023-03-12 15:08:36 +0100 | [diff] [blame] | 31 | kubernetes.io/ingress.class: nginx |
| 32 | cert-manager.io/cluster-issuer: letsencrypt-prod |
Matthias Andreas Benkard | 35751e5 | 2023-03-12 14:52:19 +0100 | [diff] [blame] | 33 | spec: |
| 34 | rules: |
| 35 | - host: foswiki.benkard.de |
| 36 | http: |
| 37 | paths: |
| 38 | - path: / |
Matthias Andreas Benkard | 62bba04 | 2023-03-12 15:08:36 +0100 | [diff] [blame] | 39 | pathType: ImplementationSpecific |
Matthias Andreas Benkard | 35751e5 | 2023-03-12 14:52:19 +0100 | [diff] [blame] | 40 | backend: |
Matthias Andreas Benkard | 62bba04 | 2023-03-12 15:08:36 +0100 | [diff] [blame] | 41 | service: |
| 42 | name: foswiki |
| 43 | port: |
| 44 | name: http |
| 45 | tls: |
| 46 | - hosts: |
| 47 | - foswiki.benkard.de |
| 48 | secretName: foswiki-tls |
Matthias Andreas Benkard | 35751e5 | 2023-03-12 14:52:19 +0100 | [diff] [blame] | 49 | --- |
| 50 | apiVersion: apps/v1 |
| 51 | kind: Deployment |
| 52 | metadata: |
| 53 | name: foswiki |
| 54 | namespace: mulk |
| 55 | labels: |
| 56 | name: foswiki |
| 57 | k8s-app: foswiki |
| 58 | spec: |
| 59 | replicas: 1 |
| 60 | strategy: |
| 61 | type: Recreate |
| 62 | selector: |
| 63 | matchLabels: |
| 64 | k8s-app: foswiki |
| 65 | name: foswiki |
| 66 | template: |
| 67 | metadata: |
| 68 | labels: |
| 69 | name: foswiki |
| 70 | k8s-app: foswiki |
| 71 | spec: |
| 72 | imagePullSecrets: |
| 73 | - name: portus-token |
| 74 | volumes: |
| 75 | - name: data |
| 76 | persistentVolumeClaim: |
| 77 | claimName: foswiki-data |
| 78 | containers: |
| 79 | - name: master |
Matthias Andreas Benkard | 62bba04 | 2023-03-12 15:08:36 +0100 | [diff] [blame] | 80 | image: docker.benkard.de/mulk/foswiki:1.29-1 |
Matthias Andreas Benkard | 35751e5 | 2023-03-12 14:52:19 +0100 | [diff] [blame] | 81 | imagePullPolicy: IfNotPresent |
| 82 | resources: |
| 83 | limits: |
| 84 | cpu: 2000m |
| 85 | memory: 2000Mi |
| 86 | requests: |
| 87 | cpu: 10m |
| 88 | memory: 300Mi |
| 89 | volumeMounts: |
| 90 | - name: data |
| 91 | mountPath: /var/www/foswiki |
| 92 | ports: |
| 93 | - containerPort: 80 |
| 94 | name: http |
| 95 | protocol: TCP |
| 96 | --- |
| 97 | apiVersion: v1 |
| 98 | kind: PersistentVolumeClaim |
| 99 | metadata: |
| 100 | name: foswiki-data |
| 101 | namespace: mulk |
| 102 | labels: |
| 103 | name: foswiki-data |
| 104 | k8s-app: foswiki |
| 105 | annotations: |
| 106 | volume.beta.kubernetes.io/storage-provisioner: rancher.io/local-path |
| 107 | spec: |
| 108 | accessModes: |
| 109 | - ReadWriteOnce |
| 110 | resources: |
| 111 | requests: |
| 112 | storage: 50Gi |
| 113 | storageClassName: local-path |
| 114 | --- |