Created
April 11, 2025 14:14
-
-
Save f41gh7/be0df60ef77b5fedbdae9e9293f2b16f to your computer and use it in GitHub Desktop.
VictoriaLogs cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vlinsert | |
spec: | |
type: ClusterIP | |
ports: | |
- name: http | |
protocol: TCP | |
port: 9428 | |
targetPort: 9428 | |
ipFamilyPolicy: SingleStack | |
selector: | |
app: vlinsert | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: vlinsert | |
spec: | |
selector: | |
matchLabels: | |
app: vlinsert | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: vlinsert | |
spec: | |
containers: | |
- name: vlinsert | |
image: victoriametrics/victoria-logs:v1.18.0-victorialogs | |
args: | |
- -storageNode=vlstorage-0.vlstorage.default.svc:9428 | |
- -storageNode=vlstorage-1.vlstorage.default.svc:9428 | |
ports: | |
- containerPort: 9428 | |
name: http | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vlstorage | |
spec: | |
type: ClusterIP | |
clusterIP: "None" | |
ports: | |
- name: http | |
protocol: TCP | |
port: 9428 | |
targetPort: 9428 | |
ipFamilyPolicy: SingleStack | |
selector: | |
app: vlstorage | |
--- | |
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: vlstorage | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
app: vlstorage | |
replicas: 2 | |
serviceName: vlstorage | |
template: | |
metadata: | |
labels: | |
app: vlstorage | |
spec: | |
containers: | |
- name: vlstorage | |
image: victoriametrics/victoria-logs:v1.18.0-victorialogs | |
args: | |
- -storageDataPath=/vl-data/ | |
ports: | |
- containerPort: 9428 | |
name: http | |
volumeMounts: | |
- name: data | |
mountPath: /vl-data | |
volumeClaimTemplates: | |
- metadata: | |
name: data | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 20Gi | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vlselect | |
spec: | |
type: ClusterIP | |
ports: | |
- name: http | |
protocol: TCP | |
port: 9428 | |
targetPort: 9428 | |
ipFamilyPolicy: SingleStack | |
selector: | |
app: vlselect | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: vlselect | |
spec: | |
selector: | |
matchLabels: | |
app: vlselect | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: vlselect | |
spec: | |
containers: | |
- name: vlselect | |
image: victoriametrics/victoria-logs:v1.18.0-victorialogs | |
args: | |
- -storageNode=vlstorage-0.vlstorage.default.svc:9428 | |
- -storageNode=vlstorage-1.vlstorage.default.svc:9428 | |
ports: | |
- containerPort: 9428 | |
name: http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vlinsert | |
spec: | |
type: ClusterIP | |
ports: | |
- name: http | |
protocol: TCP | |
port: 9428 | |
targetPort: 9428 | |
ipFamilyPolicy: SingleStack | |
selector: | |
app: vlinsert | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: vlinsert | |
spec: | |
selector: | |
matchLabels: | |
app: vlinsert | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: vlinsert | |
spec: | |
containers: | |
- name: vlinsert | |
image: victoriametrics/victoria-logs:v1.18.0-victorialogs | |
args: | |
- -storageNode=vlstorage-0.vlstorage.default.svc:9428 | |
- -storageNode=vlstorage-1.vlstorage.default.svc:9428 | |
ports: | |
- containerPort: 9428 | |
name: http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vlselect | |
spec: | |
type: ClusterIP | |
ports: | |
- name: http | |
protocol: TCP | |
port: 9428 | |
targetPort: 9428 | |
ipFamilyPolicy: SingleStack | |
selector: | |
app: vlselect | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: vlselect | |
spec: | |
selector: | |
matchLabels: | |
app: vlselect | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: vlselect | |
spec: | |
containers: | |
- name: vlselect | |
image: victoriametrics/victoria-logs:v1.18.0-victorialogs | |
args: | |
- -storageNode=vlstorage-0.vlstorage.default.svc:9428 | |
- -storageNode=vlstorage-1.vlstorage.default.svc:9428 | |
ports: | |
- containerPort: 9428 | |
name: http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vlstorage | |
spec: | |
type: ClusterIP | |
clusterIP: "None" | |
ports: | |
- name: http | |
protocol: TCP | |
port: 9428 | |
targetPort: 9428 | |
ipFamilyPolicy: SingleStack | |
selector: | |
app: vlstorage | |
--- | |
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: vlstorage | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
app: vlstorage | |
replicas: 2 | |
serviceName: vlstorage | |
template: | |
metadata: | |
labels: | |
app: vlstorage | |
spec: | |
containers: | |
- name: vlstorage | |
image: victoriametrics/victoria-logs:v1.18.0-victorialogs | |
args: | |
- -storageDataPath=/vl-data/ | |
ports: | |
- containerPort: 9428 | |
name: http | |
volumeMounts: | |
- name: data | |
mountPath: /vl-data | |
volumeClaimTemplates: | |
- metadata: | |
name: data | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 20Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment