Skip to content

Instantly share code, notes, and snippets.

@f41gh7
Last active May 3, 2022 09:05
Show Gist options
  • Save f41gh7/76ed8e5fb1ebb9737fe746bae9175ee6 to your computer and use it in GitHub Desktop.
Save f41gh7/76ed8e5fb1ebb9737fe746bae9175ee6 to your computer and use it in GitHub Desktop.
vmcluster tls kubernetes

generate self-signed ca with key

openssl req -x509 -sha256 -days 1825 -newkey rsa:2048 -keyout rootCA.key -out rootCA.crt -nodes

  • ca.default.svc.cluster.local - ou

generate storage node certificates

YOU HAVE TO USE extfile -> domain.ext

storage 0

ou - mtls-vmstorage-0.mtls-vmstorage.default.svc.cluster.local

openssl req -newkey rsa:2048 -nodes -keyout vmstorage_0.key -out vmstorage_0.csr openssl x509 -sha256 -req -CA rootCA.crt -CAkey rootCA.key -in vmstorage_0.csr -out vmstorage_0.crt -days 365 -CAcreateserial -extfile domain.ext

storage 1

ou - mtls-vmstorage-1.mtls-vmstorage.default.svc.cluster.local

openssl req -newkey rsa:2048 -nodes -keyout vmstorage_1.key -out vmstorage_1.csr openssl x509 -req -sha256 -CA rootCA.crt -CAkey rootCA.key -in vmstorage_1.csr -out vmstorage_1.crt -days 365 -CAcreateserial -extfile domain.ext

Generate client certificates

vminsert

openssl req -newkey rsa:2048 -nodes -keyout vminsert.key -out vminsert.csr openssl x509 -req -sha256 -CA rootCA.crt -CAkey rootCA.key -in vminsert.csr -out vminsert.crt -days 365 -CAcreateserial

vmselect

openssl req -newkey rsa:2048 -nodes -keyout vmselect.key -out vmselect.csr openssl x509 -req -sha256 -CA rootCA.crt -CAkey rootCA.key -in vmselect.csr -out vmselect.crt -days 365 -CAcreateserial

create secret with certificates

kubectl apply -f secret.yaml

deploy cluster with following values.yaml

helm upgrade -i mtls vm/victoria-metrics-cluster

authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
subjectAltName = @alt_names
[alt_names]
DNS.1 = mtls-vmstorage-0.mtls-vmstorage.default.svc.cluster.local
DNS.2 = mtls-vmstorage-1.mtls-vmstorage.default.svc.cluster.local
apiVersion: v1
kind: Secret
metadata:
name: mtls
namespace: default
stringData:
ca.crt: |
-----BEGIN CERTIFICATE-----
MIIDhDCCAmwCCQC/KTTKH4GEGDANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMC
RVUxCzAJBgNVBAgMAkVVMQswCQYDVQQHDAJMTjEMMAoGA1UECgwDYWRtMSUwIwYD
VQQLDBxjYS5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsMSUwIwYDVQQDDBxjYS5k
ZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsMB4XDTIyMDUwMjEyMjcwOFoXDTI3MDUw
MTEyMjcwOFowgYMxCzAJBgNVBAYTAkVVMQswCQYDVQQIDAJFVTELMAkGA1UEBwwC
TE4xDDAKBgNVBAoMA2FkbTElMCMGA1UECwwcY2EuZGVmYXVsdC5zdmMuY2x1c3Rl
ci5sb2NhbDElMCMGA1UEAwwcY2EuZGVmYXVsdC5zdmMuY2x1c3Rlci5sb2NhbDCC
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKWewb/WB03yCvO2PkCOQSdF
gFqxKmlKFAoFEn6GJLSBnaeWez8mgZ2dj98Ztw6uEcNkC1SWCuZShEOz0JkHUxCi
6B8ofRIrYrzX5DUOEYixQ+Xkx5G+aDF0a24qTOwIz/EFqTHPc+AumwVrcBH7oh6d
mvvH2JUlHtI8TGR9lk8tMXi5X5U/FZtyRvZliiDrohaXI0BDc2Wotbw8M2wbkIrw
eOakHuA4jgE05ks7DRCW5w16soM5lTPn+Iv62faOx+q8KoEgmGF7sY9QfaR6f3td
CqF1ACW5P8kCDuFodxnPN7IgpKGBbpGmRFXxLLu4P6eyr6FSRitzK4zOOcD6HbEC
AwEAATANBgkqhkiG9w0BAQsFAAOCAQEAnTOSPoOlBaWhEHqvRJluN5u6bHFqz5hb
2lMTNkDmhZb1D3TWOqiM0hvPMIpXY3c59e6ko4QuuaM7P/3517UcyjuiYuF5pFmY
G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8kYD6UDNxZv4iTl8JEaFNq5Xk32AS/75p
HC1kH/yq9oow3H93vGAu9w6iPFDkAh9WdpLwPKfjC93VYrDOejokPiiob+I85sFZ
9KmhAD4BsuVMnbUXJvTLy2DL
-----END PRIVATE KEY-----
vmstorage:
fullnameOverride: mtls-vmstorage
image:
tag: v1.76.1-enterprise-cluster
extraVolumes:
- name: mtls
secret:
secretName: mtls
extraVolumeMounts:
- name: mtls
mountPath: /etc/mtls
env:
- name: POD
valueFrom:
fieldRef:
fieldPath: metadata.name
extraArgs:
eula: "true"
cluster.tls: "true"
cluster.tlsCAFile: /etc/mtls/ca.crt
cluster.tlsCertFile: /etc/mtls/$(POD).crt
cluster.tlsKeyFile: /etc/mtls/$(POD).key
vmselect:
image:
tag: v1.76.1-enterprise-cluster
extraVolumes:
- name: mtls
secret:
secretName: mtls
extraVolumeMounts:
- name: mtls
mountPath: /etc/mtls
extraArgs:
eula: "true"
cluster.tls: "true"
cluster.tlsCAFile: /etc/mtls/ca.crt
cluster.tlsCertFile: /etc/mtls/vmselect.crt
cluster.tlsKeyFile: /etc/mtls/vmselect.key
vminsert:
image:
tag: v1.76.1-enterprise-cluster
extraVolumes:
- name: mtls
secret:
secretName: mtls
extraVolumeMounts:
- name: mtls
mountPath: /etc/mtls
extraArgs:
eula: "true"
cluster.tls: "true"
cluster.tlsCAFile: /etc/mtls/ca.crt
cluster.tlsCertFile: /etc/mtls/vminsert.crt
cluster.tlsKeyFile: /etc/mtls/vminsert.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment