|
| 1 | +--- |
| 2 | +# Source: cacheppuccino-helm/templates/serviceaccount.yaml |
| 3 | +apiVersion: v1 |
| 4 | +kind: ServiceAccount |
| 5 | +metadata: |
| 6 | + name: ifrcgo-cacheppuccino |
| 7 | + labels: |
| 8 | + helm.sh/chart: cacheppuccino-helm-0.1.0 |
| 9 | + app.kubernetes.io/name: cacheppuccino-helm |
| 10 | + app.kubernetes.io/instance: release-name |
| 11 | + app.kubernetes.io/version: "0.1.0" |
| 12 | + app.kubernetes.io/managed-by: Helm |
| 13 | + annotations: |
| 14 | + azure.workload.identity/client-id: test_id |
| 15 | +--- |
| 16 | +# Source: cacheppuccino-helm/templates/configmap.yaml |
| 17 | +apiVersion: v1 |
| 18 | +kind: ConfigMap |
| 19 | +metadata: |
| 20 | + name: ifrcgo-cacheppuccino |
| 21 | + labels: |
| 22 | + helm.sh/chart: cacheppuccino-helm-0.1.0 |
| 23 | + app.kubernetes.io/name: cacheppuccino-helm |
| 24 | + app.kubernetes.io/instance: release-name |
| 25 | + app.kubernetes.io/version: "0.1.0" |
| 26 | + app.kubernetes.io/managed-by: Helm |
| 27 | +data: |
| 28 | + SQLITE_PATH: "/data/cacheppuccino.db" |
| 29 | + HTTP_TIMEOUT: "30s" |
| 30 | + INITIAL_PULL_DEADLINE: "45s" |
| 31 | + LISTEN_ADDR: ":8080" |
| 32 | + LOG_LEVEL: "info" |
| 33 | + PULL_INTERVAL: "10m" |
| 34 | + TRANSLATION_APPLICATION_ID: "18" |
| 35 | + TRANSLATION_BASE_URL: "https://ifrc-test-translationapi.azurewebsites.net" |
| 36 | +--- |
| 37 | +# Source: cacheppuccino-helm/templates/pvc.yaml |
| 38 | +apiVersion: v1 |
| 39 | +kind: PersistentVolumeClaim |
| 40 | +metadata: |
| 41 | + name: ifrcgo-cacheppuccino |
| 42 | + labels: |
| 43 | + helm.sh/chart: cacheppuccino-helm-0.1.0 |
| 44 | + app.kubernetes.io/name: cacheppuccino-helm |
| 45 | + app.kubernetes.io/instance: release-name |
| 46 | + app.kubernetes.io/version: "0.1.0" |
| 47 | + app.kubernetes.io/managed-by: Helm |
| 48 | +spec: |
| 49 | + accessModes: |
| 50 | + - ReadWriteOnce |
| 51 | + resources: |
| 52 | + requests: |
| 53 | + storage: "512Mi" |
| 54 | +--- |
| 55 | +# Source: cacheppuccino-helm/templates/service.yaml |
| 56 | +apiVersion: v1 |
| 57 | +kind: Service |
| 58 | +metadata: |
| 59 | + name: ifrcgo-cacheppuccino |
| 60 | + labels: |
| 61 | + helm.sh/chart: cacheppuccino-helm-0.1.0 |
| 62 | + app.kubernetes.io/name: cacheppuccino-helm |
| 63 | + app.kubernetes.io/instance: release-name |
| 64 | + app.kubernetes.io/version: "0.1.0" |
| 65 | + app.kubernetes.io/managed-by: Helm |
| 66 | +spec: |
| 67 | + type: ClusterIP |
| 68 | + ports: |
| 69 | + - name: http |
| 70 | + port: 8080 |
| 71 | + targetPort: http |
| 72 | + protocol: TCP |
| 73 | + selector: |
| 74 | + app.kubernetes.io/name: cacheppuccino-helm |
| 75 | + app.kubernetes.io/instance: release-name |
| 76 | +--- |
| 77 | +# Source: cacheppuccino-helm/templates/deployment.yaml |
| 78 | +apiVersion: apps/v1 |
| 79 | +kind: Deployment |
| 80 | +metadata: |
| 81 | + name: ifrcgo-cacheppuccino |
| 82 | + annotations: |
| 83 | + reloader.stakater.com/auto: "true" |
| 84 | + labels: |
| 85 | + helm.sh/chart: cacheppuccino-helm-0.1.0 |
| 86 | + app.kubernetes.io/name: cacheppuccino-helm |
| 87 | + app.kubernetes.io/instance: release-name |
| 88 | + app.kubernetes.io/version: "0.1.0" |
| 89 | + app.kubernetes.io/managed-by: Helm |
| 90 | +spec: |
| 91 | + replicas: 1 |
| 92 | + selector: |
| 93 | + matchLabels: |
| 94 | + app.kubernetes.io/name: cacheppuccino-helm |
| 95 | + app.kubernetes.io/instance: release-name |
| 96 | + template: |
| 97 | + metadata: |
| 98 | + labels: |
| 99 | + app.kubernetes.io/name: cacheppuccino-helm |
| 100 | + app.kubernetes.io/instance: release-name |
| 101 | + azure.workload.identity/use: "true" |
| 102 | + spec: |
| 103 | + serviceAccountName: ifrcgo-cacheppuccino |
| 104 | + containers: |
| 105 | + - name: cacheppuccino |
| 106 | + image: "ghcr.io/ifrcgo/cacheppuccino:SET-BY-CICD-TAG" |
| 107 | + imagePullPolicy: IfNotPresent |
| 108 | + ports: |
| 109 | + - name: http |
| 110 | + containerPort: 8080 |
| 111 | + protocol: TCP |
| 112 | + envFrom: |
| 113 | + - configMapRef: |
| 114 | + name: ifrcgo-cacheppuccino |
| 115 | + - secretRef: |
| 116 | + name: ifrcgo-cacheppuccino-vault-secret |
| 117 | + securityContext: |
| 118 | + allowPrivilegeEscalation: false |
| 119 | + readOnlyRootFilesystem: true |
| 120 | + runAsGroup: 0 |
| 121 | + runAsUser: 0 |
| 122 | + livenessProbe: |
| 123 | + httpGet: |
| 124 | + path: /healthz |
| 125 | + port: http |
| 126 | + initialDelaySeconds: 5 |
| 127 | + periodSeconds: 10 |
| 128 | + timeoutSeconds: 2 |
| 129 | + failureThreshold: 3 |
| 130 | + readinessProbe: |
| 131 | + httpGet: |
| 132 | + path: /readyz |
| 133 | + port: http |
| 134 | + initialDelaySeconds: 5 |
| 135 | + periodSeconds: 10 |
| 136 | + timeoutSeconds: 2 |
| 137 | + failureThreshold: 6 |
| 138 | + resources: |
| 139 | + limits: |
| 140 | + cpu: 500m |
| 141 | + memory: 512Mi |
| 142 | + requests: |
| 143 | + cpu: 100m |
| 144 | + memory: 128Mi |
| 145 | + volumeMounts: |
| 146 | + - name: sqlite |
| 147 | + mountPath: "/data" |
| 148 | + - name: secrets-store |
| 149 | + mountPath: "/mnt/secrets-store" |
| 150 | + readOnly: true |
| 151 | + volumes: |
| 152 | + - name: sqlite |
| 153 | + persistentVolumeClaim: |
| 154 | + claimName: ifrcgo-cacheppuccino |
| 155 | + - name: secrets-store |
| 156 | + csi: |
| 157 | + driver: secrets-store.csi.k8s.io |
| 158 | + readOnly: true |
| 159 | + volumeAttributes: |
| 160 | + secretProviderClass: ifrcgo-cacheppuccino-secret-provider |
| 161 | +--- |
| 162 | +# Source: cacheppuccino-helm/templates/ingress.yaml |
| 163 | +apiVersion: networking.k8s.io/v1 |
| 164 | +kind: Ingress |
| 165 | +metadata: |
| 166 | + name: ifrcgo-cacheppuccino |
| 167 | + labels: |
| 168 | + helm.sh/chart: cacheppuccino-helm-0.1.0 |
| 169 | + app.kubernetes.io/name: cacheppuccino-helm |
| 170 | + app.kubernetes.io/instance: release-name |
| 171 | + app.kubernetes.io/version: "0.1.0" |
| 172 | + app.kubernetes.io/managed-by: Helm |
| 173 | +spec: |
| 174 | + ingressClassName: nginx |
| 175 | + rules: |
| 176 | + - host: "cacheppuccino-test-stage.ifrc.org" |
| 177 | + http: |
| 178 | + paths: |
| 179 | + - path: / |
| 180 | + pathType: Prefix |
| 181 | + backend: |
| 182 | + service: |
| 183 | + name: ifrcgo-cacheppuccino |
| 184 | + port: |
| 185 | + number: 8080 |
| 186 | + tls: |
| 187 | + - secretName: cacheppuccino-helm-secret-cert-test |
| 188 | + hosts: |
| 189 | + - "cacheppuccino-test-stage.ifrc.org" |
| 190 | +--- |
| 191 | +# Source: cacheppuccino-helm/templates/secret-provider-class.yaml |
| 192 | +apiVersion: secrets-store.csi.x-k8s.io/v1 |
| 193 | +kind: SecretProviderClass |
| 194 | +metadata: |
| 195 | + name: ifrcgo-cacheppuccino-secret-provider |
| 196 | + labels: |
| 197 | + helm.sh/chart: cacheppuccino-helm-0.1.0 |
| 198 | + app.kubernetes.io/name: cacheppuccino-helm |
| 199 | + app.kubernetes.io/instance: release-name |
| 200 | + app.kubernetes.io/version: "0.1.0" |
| 201 | + app.kubernetes.io/managed-by: Helm |
| 202 | +spec: |
| 203 | + provider: azure |
| 204 | + parameters: |
| 205 | + clientID: test_client_id |
| 206 | + keyvaultName: test_key_vault_name |
| 207 | + tenantId: test_tenant_id |
| 208 | + usePodIdentity: "false" |
| 209 | + useVMManagedIdentity: "false" |
| 210 | + objects: | |
| 211 | + array: |
| 212 | + - | |
| 213 | + objectName: TRANSLATION-API-KEY |
| 214 | + objectType: secret |
| 215 | + secretObjects: |
| 216 | + - secretName: ifrcgo-cacheppuccino-vault-secret |
| 217 | + type: Opaque |
| 218 | + data: |
| 219 | + - objectName: TRANSLATION-API-KEY |
| 220 | + key: TRANSLATION_API_KEY |
0 commit comments