Merge pull request #592 from 3dwardch3ng/infra/redis-insight
add infra app redis-insight
This commit is contained in:
52
infrastructures/redis-insight/base/deployment.yaml
Normal file
52
infrastructures/redis-insight/base/deployment.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: redis-insight
|
||||
namespace: redis
|
||||
labels:
|
||||
app.kubernetes.io/name: redis-insight
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: redis-insight
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: redis-insight
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
containers:
|
||||
- name: redis-insight
|
||||
image: redis/redisinsight:2.52
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 5540
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 2
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: http
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 3
|
||||
successThreshold: 1
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: http
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 3
|
||||
successThreshold: 1
|
||||
volumeMounts:
|
||||
- name: redis-insight-data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: redis-insight-data
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/redis-insight
|
||||
5
infrastructures/redis-insight/base/kustomization.yaml
Normal file
5
infrastructures/redis-insight/base/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
16
infrastructures/redis-insight/base/service.yaml
Normal file
16
infrastructures/redis-insight/base/service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: redis-insight
|
||||
namespace: redis
|
||||
labels:
|
||||
app.kubernetes.io/name: redis-insight
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 5540
|
||||
targetPort: 5540
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app.kubernetes.io/name: redis-insight
|
||||
12
infrastructures/redis-insight/env/k3s-cluster/config.json
vendored
Normal file
12
infrastructures/redis-insight/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"appName": "redis-insight",
|
||||
"userGivenName": "redis-insight",
|
||||
"namespace": "redis",
|
||||
"destNamespace": "redis",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "infrastructures/redis-insight/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
21
infrastructures/redis-insight/env/k3s-cluster/ingress.yaml
vendored
Normal file
21
infrastructures/redis-insight/env/k3s-cluster/ingress.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: redis-insight-ingress
|
||||
namespace: redis
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "redis-insight.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: redis-insight
|
||||
port:
|
||||
number: 5540
|
||||
5
infrastructures/redis-insight/env/k3s-cluster/kustomization.yaml
vendored
Normal file
5
infrastructures/redis-insight/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../base
|
||||
- ./ingress.yaml
|
||||
Reference in New Issue
Block a user