Providing master_ipv4_cidr_block and subnet range using terraform variables in GCP

I have created a private cluster in GCP using terraform modules. As per the documentation here: https://www.terraform.io/docs/providers/google/r/container_cluster.html#master_ipv4_cidr_block, I have configured the private cluster as below: private_cluster_config { enable_private_endpoint = true enable_private_nodes = true master_ipv4_cidr_block = “${cidrsubnet(var.cidr, 28, 1)}” } This cluster is provisioned in a subnet whose CIDR range is 10.15.0.0/16 (var.cidr is set to…

SSL_ERROR_RX_RECORD_TOO_LONG Using Nginx reverse proxy and certbot

I have the following Nginx config: server { server_name api.wijdenbos.ch www.api.wijdenbos.ch; location /akira { proxy_pass http://localhost:4000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection ‘upgrade’; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/api.wijdenbos.ch/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/api.wijdenbos.ch/privkey.pem; # managed…

How to get resource quotas for every resource in GCP

I have set up few resources in my project on Google Cloud Platform. I was looking for the resource quotas that is applicable for all the resources under a project. As per the documentation here: https://cloud.google.com/compute/quotas, running the following commands will provide the region wise and project wise quotas: gcloud compute project-info describe –project myproject…

OVH VPS – firewalld not working in Centos 7

I installed a new server on OVH with CentOS 7: yum install firewalld then enabled and rebooted systemctl enable firewalld reboot I am now be able to login using ssh but firewalld does not come up [[email protected]~]# firewall-cmd –state failed [[email protected]~]# firewall-cmd –get-default-zone <empty line> [[email protected]~]# firewall-cmd –get-active-zones <empty line> [[email protected]~]# systemctl status firewalld ●…