You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
netassert takes a single YAML file as input. This file lists the hosts to test from, and describes the hosts and ports that it should be able to reach.
151
151
152
-
It can test from any reachable host, and from Kubernetes pods.
152
+
It can test from any reachable host, and from inside Kubernetes pods.
153
153
154
154
A simple example:
155
155
156
156
```yaml
157
-
host: #used for ssh-accessible hosts
158
-
localhost: # host to run test from, can be anything accessible via SSH
157
+
host: #child keys must be ssh-accessible hosts
158
+
localhost: # host to run test from, must be accessible via SSH
159
159
8.8.8.8: UDP:53 # host and ports to test for access
160
160
```
161
161
162
162
A full example:
163
163
164
164
```yaml
165
-
host: #used for ssh-accessible hosts
165
+
host: #child keys must be ssh-accessible hosts
166
166
localhost: # host to run test from, can be a remote host
167
167
8.8.8.8: UDP:53 # host and ports to test from localhost
168
168
google.co.uk: 443# if no protocol is specified then TCP is implied
@@ -183,7 +183,7 @@ host: # used for ssh-accessible hosts
183
183
google.com: 443# this tests google.com:443 is accesible from control-plane.io
184
184
185
185
186
-
k8s: #used for Kubernetes pods
186
+
k8s: #child keys must be Kubernetes entities
187
187
deployment: # only deployments currently supported
188
188
test-frontend: # pod name, defaults to `default` namespace
189
189
test-microservice: 80# `test-microservice` is the DNS name of the target service
0 commit comments