{ "apiVersion": "v1", "kind": "List", "items": [ { "apiVersion": "v1", "kind": "ConfigMap", "metadata": { "name": "hwlab-workbench-redis-config", "namespace": "hwlab-v03", "labels": { "app.kubernetes.io/name": "hwlab-workbench-redis", "app.kubernetes.io/part-of": "hwlab", "hwlab.pikastech.local/cache-role": "workbench-derived-read", "hwlab.pikastech.local/component": "workbench-runtime-cache", "hwlab.pikastech.local/environment": "v03", "hwlab.pikastech.local/gitops-target": "v03", "hwlab.pikastech.local/profile": "v03", "hwlab.pikastech.local/service-id": "hwlab-workbench-redis", "hwlab.pikastech.local/source-commit": "6120f7fdfeea04cd47d69091fe6d4cf4cd076ead" }, "annotations": { "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs", "argocd.argoproj.io/sync-wave": "2" } }, "data": { "redis.conf": "save \"\"\nappendonly no\nmaxmemory 192mb\nmaxmemory-policy allkeys-lru\n" } }, { "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "name": "hwlab-workbench-redis", "namespace": "hwlab-v03", "labels": { "app.kubernetes.io/name": "hwlab-workbench-redis", "app.kubernetes.io/part-of": "hwlab", "hwlab.pikastech.local/cache-role": "workbench-derived-read", "hwlab.pikastech.local/component": "workbench-runtime-cache", "hwlab.pikastech.local/environment": "v03", "hwlab.pikastech.local/gitops-target": "v03", "hwlab.pikastech.local/profile": "v03", "hwlab.pikastech.local/service-id": "hwlab-workbench-redis", "hwlab.pikastech.local/source-commit": "6120f7fdfeea04cd47d69091fe6d4cf4cd076ead" }, "annotations": { "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs", "argocd.argoproj.io/sync-wave": "2" } }, "spec": { "replicas": 1, "selector": { "matchLabels": { "app.kubernetes.io/name": "hwlab-workbench-redis" } }, "template": { "metadata": { "labels": { "app.kubernetes.io/name": "hwlab-workbench-redis", "app.kubernetes.io/part-of": "hwlab", "hwlab.pikastech.local/cache-role": "workbench-derived-read", "hwlab.pikastech.local/component": "workbench-runtime-cache", "hwlab.pikastech.local/environment": "v03", "hwlab.pikastech.local/gitops-target": "v03", "hwlab.pikastech.local/profile": "v03", "hwlab.pikastech.local/service-id": "hwlab-workbench-redis", "hwlab.pikastech.local/source-commit": "6120f7fdfeea04cd47d69091fe6d4cf4cd076ead" }, "annotations": { "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs", "argocd.argoproj.io/sync-wave": "2" } }, "spec": { "containers": [ { "name": "redis", "image": "127.0.0.1:5000/hwlab/redis:8.2.3-alpine", "imagePullPolicy": "IfNotPresent", "args": [ "redis-server", "/usr/local/etc/redis/redis.conf" ], "ports": [ { "name": "redis", "containerPort": 6379 } ], "readinessProbe": { "exec": { "command": [ "redis-cli", "-p", "6379", "ping" ] }, "initialDelaySeconds": 3, "periodSeconds": 10, "timeoutSeconds": 2, "failureThreshold": 3 }, "livenessProbe": { "exec": { "command": [ "redis-cli", "-p", "6379", "ping" ] }, "initialDelaySeconds": 15, "periodSeconds": 20, "timeoutSeconds": 3, "failureThreshold": 3 }, "resources": { "requests": { "cpu": "50m", "memory": "64Mi" }, "limits": { "cpu": "250m", "memory": "256Mi" } }, "volumeMounts": [ { "name": "config", "mountPath": "/usr/local/etc/redis", "readOnly": true } ] } ], "volumes": [ { "name": "config", "configMap": { "name": "hwlab-workbench-redis-config" } } ] } } } }, { "apiVersion": "v1", "kind": "Service", "metadata": { "name": "hwlab-workbench-redis", "namespace": "hwlab-v03", "labels": { "app.kubernetes.io/name": "hwlab-workbench-redis", "app.kubernetes.io/part-of": "hwlab", "hwlab.pikastech.local/cache-role": "workbench-derived-read", "hwlab.pikastech.local/component": "workbench-runtime-cache", "hwlab.pikastech.local/environment": "v03", "hwlab.pikastech.local/gitops-target": "v03", "hwlab.pikastech.local/profile": "v03", "hwlab.pikastech.local/service-id": "hwlab-workbench-redis", "hwlab.pikastech.local/source-commit": "6120f7fdfeea04cd47d69091fe6d4cf4cd076ead" }, "annotations": { "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs", "argocd.argoproj.io/sync-wave": "2" } }, "spec": { "type": "ClusterIP", "selector": { "app.kubernetes.io/name": "hwlab-workbench-redis" }, "ports": [ { "name": "redis", "port": 6379, "targetPort": "redis", "protocol": "TCP" } ] } }, { "apiVersion": "networking.k8s.io/v1", "kind": "NetworkPolicy", "metadata": { "name": "hwlab-workbench-redis-ingress", "namespace": "hwlab-v03", "labels": { "app.kubernetes.io/name": "hwlab-workbench-redis", "app.kubernetes.io/part-of": "hwlab", "hwlab.pikastech.local/cache-role": "workbench-derived-read", "hwlab.pikastech.local/component": "workbench-runtime-cache", "hwlab.pikastech.local/environment": "v03", "hwlab.pikastech.local/gitops-target": "v03", "hwlab.pikastech.local/profile": "v03", "hwlab.pikastech.local/service-id": "hwlab-workbench-redis", "hwlab.pikastech.local/source-commit": "6120f7fdfeea04cd47d69091fe6d4cf4cd076ead" }, "annotations": { "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs", "argocd.argoproj.io/sync-wave": "2" } }, "spec": { "podSelector": { "matchLabels": { "app.kubernetes.io/name": "hwlab-workbench-redis" } }, "policyTypes": [ "Ingress" ], "ingress": [ { "from": [ { "podSelector": { "matchLabels": { "app.kubernetes.io/name": "hwlab-workbench-runtime" } } } ], "ports": [ { "protocol": "TCP", "port": 6379 } ] } ] } } ] }