Add current IP automatically to whitelists for SSH and Kubernetes
After I removed the automatic IP addition to the firewalls for SSH and Kubernetes I ran into a problem only a few days later. My ISP changed my IPs and I was to stupid to realize that immediately. So, this change reintroduces the automatic addition of my current IPs to the whitelists for Kubernetes and SSH. Though, I adjusted the algorithm, so it will not change every day or so, but instead really only when my ISP changes my IPs.
This commit is contained in:
12
variables.tf
12
variables.tf
@@ -1,11 +1,23 @@
|
||||
variable "kubernetes_allowed_ips" {
|
||||
type = set(string)
|
||||
description = "A set of IPs (IPv4 and IPv6) which have access to the kubernetes API."
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "ssh_allowed_ips" {
|
||||
type = set(string)
|
||||
description = "A set of IPs (IPv4 and IPv6) which can access the cluster via SSH."
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "add_local_ip_to_kubernetes_allowed_ips" {
|
||||
default = true
|
||||
description = "Whether to add the current local ip to the set of IPs which have access to the kubernetes API."
|
||||
}
|
||||
|
||||
variable "add_local_ip_to_ssh_allowed_ips" {
|
||||
default = true
|
||||
description = "Whether to add the current local ip to the set of IPs which have access to the cluster via SSH."
|
||||
}
|
||||
|
||||
variable "hetzner_dns_apitoken" {
|
||||
|
||||
Reference in New Issue
Block a user