kubectl get no -l spotinst.io/node-lifecycle=od
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
aws rds describe-db-instances --query 'DBInstances[?BackupRetentionPeriod>`7`].[DBInstanceIdentifier,BackupRetentionPeriod]' --region <region> --output table |
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
aws rds describe-db-snapshots --query "DBSnapshots[?SnapshotCreateTime<='$(date -v-7d +%Y-%m-%dT%H:%M:%SZ)'].{DBSnapshotIdentifier:DBSnapshotIdentifier, DBInstanceIdentifier:DBInstanceIdentifier,SnapshotCreateTime:SnapshotCreateTime}" --region <region> --output table |
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
version: '3' | |
services: | |
grafana: | |
image: grafana/grafana:9.0.7 | |
expose: | |
- "3000" | |
environment: | |
- GF_DATABASE_NAME=grafana | |
- GF_DATABASE_USER=postgres | |
- GF_DATABASE_PASSWORD=super-secret-password |
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
version: '3' | |
services: | |
grafana: | |
image: grafana/grafana:9.0.7 | |
container_name: grafana | |
ports: | |
- 3000:3000 | |
environment: | |
- GF_DATABASE_NAME=grafana | |
- GF_DATABASE_USER=postgres |
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
{{ define "alert_severity_prefix_emoji" -}} | |
{{- if ne .Status "firing" -}} | |
:white_check_mark: | |
{{- else if eq .CommonLabels.severity "critical" -}} | |
:red_circle: | |
{{- else if eq .CommonLabels.severity "warning" -}} | |
:warning: | |
{{- end -}} | |
{{- end -}} |
- Create a file called
lifecycle.json
and append the below into it :
{
"Rules": [
{
"ID": "Delete files older than 60 days",
"Prefix": "",
"Status": "Enabled",
"Expiration":
{
If you face the below error message while starting minikube with podman as the driver, then follow the below solution :
Error message : Exiting due to RSRC_INSUFFICIENT_CORES: Requested cpu count 2 is greater than the available cpus of 1
Reason : - By default podman creates the VM with 1 vCPU. minikube (Kubernetes) requires minimum 2vCPU
Steps :
- Stop the existing VM :
podman machine stop
Lab Link : Here
- Create a project jumphost instance
- You will use this instance to perform maintenance for the project.
NewerOlder