Skip to content
GitLab
Explore
Sign in
libre.sh
kubernetes
cli
Compare revisions
3d1602918cafea0c45f869377d9743ebc5f4350f to 7771dce0b2e9052f5de9ac5d277fcdd63f181dc2
Commits on Source (3)
fix: firewall endpoints
· d0472d6a
Hugo Renard
authored
Aug 13, 2022
d0472d6a
misc: bump k0sctl
· f4c863f9
Hugo Renard
authored
Aug 13, 2022
f4c863f9
expose kube-proxy metrics to nodes
· 7771dce0
Hugo Renard
authored
Aug 13, 2022
7771dce0
Hide whitespace changes
Inline
Side-by-side
pkg/adalovelace/adalovelace.go
View file @
7771dce0
...
...
@@ -20,7 +20,6 @@ type Provisioner struct {
DryRun
bool
}
// content holds our static web server content.
//go:embed templates/*/*
var
tplFS
embed
.
FS
...
...
@@ -68,7 +67,7 @@ func (p Provisioner) CheckRequirements() error {
Command
:
"k0sctl"
,
Args
:
[]
string
{
"version"
},
Regex
:
`version: (.*)`
,
Constraint
:
"0.1
0.2
"
,
Constraint
:
"0.1
3.x
"
,
},
{
Command
:
"terraform"
,
...
...
pkg/adalovelace/templates/ansible/tasks/firewall-worker.yaml
View file @
7771dce0
...
...
@@ -11,8 +11,8 @@
name
:
"
{{
cluster.name
}}-{{
item.key
}}"
spec
:
node
:
"
{{
cluster.name
}}-{{
item.key
}}"
interfaceName
:
"
*
"
expectedIPs
:
[
"
{{
item.value.publicIp
}}"
,
"
{{
item.value.privateIp
}}"
]
interfaceName
:
"
"
expectedIPs
:
[
"
{{
item.value.publicIp
}}"
,
"
{{
item.value.privateIp
}}"
]
loop
:
"
{{
cluster.nodes
|
dict2items
}}"
loop_control
:
label
:
"
{{
item.key
}}"
...
...
@@ -29,37 +29,38 @@
name
:
default.host-firewall
spec
:
egress
:
-
action
:
Allow
destination
:
{}
source
:
{}
-
action
:
Allow
destination
:
{}
source
:
{}
ingress
:
-
action
:
Allow
destination
:
nets
:
-
127.0.0.0/8
source
:
{}
-
action
:
Allow
destination
:
{}
protocol
:
ICMP
source
:
{}
-
action
:
Allow
destination
:
ports
:
-
22
protocol
:
TCP
source
:
{}
-
action
:
Allow
destination
:
ports
:
-
10250
protocol
:
TCP
source
:
nets
:
-
"
{{
cluster.network.cidr
}}"
-
action
:
Log
destination
:
{}
source
:
{}
-
action
:
Allow
destination
:
nets
:
-
127.0.0.0/8
source
:
{}
-
action
:
Allow
destination
:
{}
protocol
:
ICMP
source
:
{}
-
action
:
Allow
destination
:
ports
:
-
22
protocol
:
TCP
source
:
{}
-
action
:
Allow
destination
:
ports
:
-
10250
# Kubelet
-
10249
# Kube proxy metrics
protocol
:
TCP
source
:
nets
:
-
"
{{
cluster.network.cidr
}}"
-
action
:
Log
destination
:
{}
source
:
{}
selector
:
has(kubernetes.io/hostname)
types
:
-
Ingress
-
Egress
-
Ingress
-
Egress
pkg/adalovelace/templates/k0s/k0sctl.yaml
View file @
7771dce0
...
...
@@ -12,7 +12,7 @@ spec:
privateAddress
:
{{
.PrivateIP
}}
{{
end
}}
k0s
:
version
:
v
1.23.9+k0s.0
version
:
1.23.9+k0s.0
config
:
apiVersion
:
k0s.k0sproject.io/v1beta1
kind
:
Cluster
...
...