Deployment for the network multi-tool
Copy the following deployment YAML content for the network multi-tool and create a file.
Modify the namespace to the one you want to install in.
apiVersion: apps/v1
kind: Deployment
metadata:
name: network-multitool
namespace: zcp-system
spec:
replicas: 1
selector:
matchLabels:
component: network-multitool
template:
metadata:
labels:
component: network-multitool
name: network-multitool
spec:
containers:
- name: network-multitool
image: v2-zcr.cloudzcp.io/library/network-multitool
imagePullPolicy: AlwaysNote) To use the above deployment YAML as is, the Kubernetes cluster must be able to access the public internet. If public internet access is not available, pull the above container image and push it to a private registry, then modify the path accordingly.
Installation Method
$ kubectl apply -f network-multitool.yaml
Access Method
You can access and use Linux network tools with the following kubectl command.
$ kubectl exec -it -n zcp-system [network-multitool-pod-id] -- sh # After connecting, you can use tools like below: / # curl / # wget / # nslookup / # netstat