In the normal mode:
- go to the top of the file: press "gg".
Open ".vimrc" in your home directory to set permanently:
- "set number": add the line numbers,
- "set mouse+=a": easy copy without the line numbers.
In the normal mode:
Open ".vimrc" in your home directory to set permanently:
Post pisany w oparciu o Debiana 11.
Następnie otwieramy "/etc/bind/named.conf.options":
acl "trusted" {
ADRES_IP; # Serwer podstawowy
ADRES_IP; # Serwer zapasowy
};
options {
directory "/var/cache/bind";
recursion yes; # Pozwol na rekursywne zapytania.
allow-recursion { trusted; }; # Pozwol na rekursywne zapytania z listy zaufanych klientow.
allow-transfer { none; }; # Wylacz domyslny transfer strefy.
dnssec-validation auto;
auth-nxdomain no;
listen-on-v6 { any; };
forwarders {
8.8.8.8;
8.8.4.4;
};
};
Teraz "/etc/bind/named.conf.local":
zone "yolandi.pl" {
type master;
file "/etc/bind/db.yolandi.pl"; # Sciezka do pliku strefy
allow-transfer { ADRES_IP; }; # IP serwera zapasowego
};
Tworzymy "/etc/bind/zones/db.yolandi.pl":
$TTL 604800
@ IN SOA yolandi.pl. admin.yolandi.pl. (
2021051601 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS TWOJA_GLOWNA_DOMENA.
IN NS DOMENA_SERWERA_ZAPASOWEGO.
yolandi.pl. IN A ADRES_IP
Let's imagine you have an EKS cluster with a Grafana deployment. You cluster has as a default storage EBS. Unfortunately EBS doesn't allow you to create more replicas of your deployment because the EBS is already attached to the instance. To workaround this we can use EFS.
Before you start changing your workloads you install Amazon EFS CSI driver as an addon.
Then create an EFS disk and write down the identifier. It's better to have an EFS per deployment (better maintenance for example).
Now we have a possibility to create a StorageClass in our Helm chart:
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: efs-storageclass
provisioner: efs.csi.aws.com
parameters:
provisioningMode: efs-ap
fileSystemId: {{ .Values.grafana_custom.StorageClass.efs_id | quote }}
directoryPerms: "755"
basePath: "/grafana"
When a PVC is created with a StorageClass that has a basePath specified, the dynamically provisioned PV will be created with a subdirectory path under the specified basePath. This can be useful for organizing and managing the storage resources in a cluster.
It is better to first deploy the StorageClass before you change the Grafana storage type.
Change the StorageClass name in the Helm values: https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L327
Change the access mode to "ReadWriteMany": https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L328
Enter the needed disk size: https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L329