2023-02-28 12:32:15 +00:00
|
|
|
---
|
|
|
|
# Source: dragonfly/templates/serviceaccount.yaml
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: test-dragonfly
|
2023-02-28 13:06:20 +00:00
|
|
|
namespace: default
|
2023-02-28 12:32:15 +00:00
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: dragonfly
|
|
|
|
app.kubernetes.io/instance: test
|
2024-12-11 09:57:16 +00:00
|
|
|
app.kubernetes.io/version: "v1.25.5"
|
2023-02-28 12:32:15 +00:00
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
---
|
|
|
|
# Source: dragonfly/templates/service.yaml
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: test-dragonfly
|
2023-02-28 13:06:20 +00:00
|
|
|
namespace: default
|
2023-02-28 12:32:15 +00:00
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: dragonfly
|
|
|
|
app.kubernetes.io/instance: test
|
2024-12-11 09:57:16 +00:00
|
|
|
app.kubernetes.io/version: "v1.25.5"
|
2023-02-28 12:32:15 +00:00
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 6379
|
|
|
|
targetPort: dragonfly
|
|
|
|
protocol: TCP
|
|
|
|
name: dragonfly
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: dragonfly
|
|
|
|
app.kubernetes.io/instance: test
|
|
|
|
---
|
|
|
|
# Source: dragonfly/templates/deployment.yaml
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: test-dragonfly
|
2023-02-28 13:06:20 +00:00
|
|
|
namespace: default
|
2023-02-28 12:32:15 +00:00
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: dragonfly
|
|
|
|
app.kubernetes.io/instance: test
|
2024-12-11 09:57:16 +00:00
|
|
|
app.kubernetes.io/version: "v1.25.5"
|
2023-02-28 12:32:15 +00:00
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: dragonfly
|
|
|
|
app.kubernetes.io/instance: test
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: dragonfly
|
|
|
|
app.kubernetes.io/instance: test
|
|
|
|
spec:
|
|
|
|
serviceAccountName: test-dragonfly
|
|
|
|
initContainers:
|
|
|
|
- args:
|
|
|
|
- -c
|
|
|
|
- date; sleep 1;
|
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
image: busybox:1.28
|
|
|
|
name: initcontainer-string
|
|
|
|
containers:
|
|
|
|
- name: dragonfly
|
2024-12-11 09:57:16 +00:00
|
|
|
image: "docker.dragonflydb.io/dragonflydb/dragonfly:v1.25.5"
|
2023-02-28 12:32:15 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
ports:
|
|
|
|
- name: dragonfly
|
|
|
|
containerPort: 6379
|
|
|
|
protocol: TCP
|
|
|
|
livenessProbe:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
- /usr/local/bin/healthcheck.sh
|
|
|
|
failureThreshold: 3
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
|
|
|
timeoutSeconds: 5
|
|
|
|
readinessProbe:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
- /usr/local/bin/healthcheck.sh
|
|
|
|
failureThreshold: 3
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
|
|
|
timeoutSeconds: 5
|
|
|
|
args:
|
|
|
|
- "--alsologtostderr"
|
|
|
|
resources:
|
|
|
|
limits: {}
|
|
|
|
requests: {}
|