- Refactor dnsmasq configuration and scripts for improved variable handling and clarity - Updated dnsmasq configuration files to use direct variable references instead of data source functions for better readability. - Modified setup scripts to ensure they are run from the correct environment and directory, checking for the WC_HOME variable. - Changed paths in README and scripts to reflect the new directory structure. - Enhanced error handling in setup scripts to provide clearer guidance on required configurations. - Adjusted kernel and initramfs URLs in boot.ipxe to use the updated variable references.
71 lines
1.2 KiB
YAML
71 lines
1.2 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: debug
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: netdebug
|
|
namespace: debug
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: netdebug
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: netdebug
|
|
namespace: debug
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: cluster-admin
|
|
apiGroup: rbac.authorization.k8s.io
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: netdebug
|
|
namespace: debug
|
|
labels:
|
|
app: netdebug
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: netdebug
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: netdebug
|
|
spec:
|
|
serviceAccountName: netdebug
|
|
containers:
|
|
- name: netdebug
|
|
image: nicolaka/netshoot:latest
|
|
command: ["/bin/bash"]
|
|
args: ["-c", "while true; do sleep 3600; done"]
|
|
resources:
|
|
limits:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
securityContext:
|
|
privileged: true
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: netdebug
|
|
namespace: debug
|
|
spec:
|
|
selector:
|
|
app: netdebug
|
|
ports:
|
|
- port: 22
|
|
targetPort: 22
|
|
name: ssh
|
|
type: ClusterIP |