|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: StatefulSet |
| 3 | +metadata: |
| 4 | + name: spire-server |
| 5 | + namespace: spire |
| 6 | + labels: |
| 7 | + app: spire-server |
| 8 | +spec: |
| 9 | + replicas: 1 |
| 10 | + selector: |
| 11 | + matchLabels: |
| 12 | + app: spire-server |
| 13 | + serviceName: spire-server |
| 14 | + template: |
| 15 | + metadata: |
| 16 | + namespace: spire |
| 17 | + labels: |
| 18 | + app: spire-server |
| 19 | + spec: |
| 20 | + serviceAccountName: spire-server |
| 21 | + shareProcessNamespace: true |
| 22 | + containers: |
| 23 | + - name: hpcs-nginx |
| 24 | + image: nginx |
| 25 | + ports: |
| 26 | + - containerPort: 443 |
| 27 | + name: hpcs-nginx |
| 28 | + volumeMounts: |
| 29 | + - name: nginx-config |
| 30 | + mountPath: /etc/nginx/ |
| 31 | + readOnly: true |
| 32 | + - name: spire-server-socket |
| 33 | + mountPath: /tmp/spire-server/private |
| 34 | + readOnly: false |
| 35 | + - name: nginx-certs |
| 36 | + mountPath: /certs |
| 37 | + readOnly: true |
| 38 | + - name: spire-server |
| 39 | + image: ghcr.io/spiffe/spire-server:1.9.0 |
| 40 | + args: |
| 41 | + - -config |
| 42 | + - /run/spire/config/server.conf |
| 43 | + ports: |
| 44 | + - containerPort: 8081 |
| 45 | + volumeMounts: |
| 46 | + - name: spire-config |
| 47 | + mountPath: /run/spire/config |
| 48 | + readOnly: true |
| 49 | + - name: spire-data |
| 50 | + mountPath: /run/spire/data |
| 51 | + readOnly: false |
| 52 | + - name: spire-server-socket |
| 53 | + mountPath: /tmp/spire-server/private |
| 54 | + readOnly: false |
| 55 | + livenessProbe: |
| 56 | + httpGet: |
| 57 | + path: /live |
| 58 | + port: 8080 |
| 59 | + failureThreshold: 2 |
| 60 | + initialDelaySeconds: 15 |
| 61 | + periodSeconds: 60 |
| 62 | + timeoutSeconds: 3 |
| 63 | + readinessProbe: |
| 64 | + httpGet: |
| 65 | + path: /ready |
| 66 | + port: 8080 |
| 67 | + initialDelaySeconds: 5 |
| 68 | + periodSeconds: 5 |
| 69 | + - name: spire-oidc |
| 70 | + image: ghcr.io/spiffe/oidc-discovery-provider:1.9.0 |
| 71 | + args: |
| 72 | + - -config |
| 73 | + - /run/spire/oidc/config/oidc-discovery-provider.conf |
| 74 | + volumeMounts: |
| 75 | + - name: spire-server-socket |
| 76 | + mountPath: /tmp/spire-server/private |
| 77 | + readOnly: true |
| 78 | + - name: spire-oidc-config |
| 79 | + mountPath: /run/spire/oidc/config/ |
| 80 | + readOnly: true |
| 81 | + - name: spire-data |
| 82 | + mountPath: /run/spire/data |
| 83 | + readOnly: false |
| 84 | + readinessProbe: |
| 85 | + httpGet: |
| 86 | + path: /keys # TODO: Change this to /ready when using 1.5.2+ |
| 87 | + port: 8008 |
| 88 | + failureThreshold: 5 |
| 89 | + initialDelaySeconds: 5 |
| 90 | + periodSeconds: 5 |
| 91 | + timeoutSeconds: 3 |
| 92 | + volumes: |
| 93 | + - name: nginx-config |
| 94 | + configMap: |
| 95 | + name: hpcs-nginx |
| 96 | + - name: spire-config |
| 97 | + configMap: |
| 98 | + name: spire-server |
| 99 | + - name: spire-server-socket |
| 100 | + hostPath: |
| 101 | + path: /run/spire/sockets/server |
| 102 | + type: DirectoryOrCreate |
| 103 | + - name: spire-oidc-config |
| 104 | + configMap: |
| 105 | + name: oidc-discovery-provider |
| 106 | + - name: nginx-certs |
| 107 | + hostPath: |
| 108 | + path: /Users/telliere/LUMI-SD/nginx.conf.d |
| 109 | + type: DirectoryOrCreate |
| 110 | + volumeClaimTemplates: |
| 111 | + - metadata: |
| 112 | + name: spire-data |
| 113 | + namespace: spire |
| 114 | + spec: |
| 115 | + accessModes: |
| 116 | + - ReadWriteOnce |
| 117 | + resources: |
| 118 | + requests: |
| 119 | + storage: 1Gi |
0 commit comments