-
Notifications
You must be signed in to change notification settings - Fork 177
/
podWithTools.yaml
32 lines (32 loc) · 1003 Bytes
/
podWithTools.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
###########################################################
## This file has the configuration for
## - A pod with an ubuntu container installed with some basic tools like vim, curl
##
## Deploy: kubectl apply -f podWithTools.yaml
## Terminal access: kubectl exec -it pod-with-tools -- bash
## Remove: kubectl delete -f podWithTools.yaml
###########################################################
apiVersion: v1
kind: Pod
metadata:
name: pod-with-tools
spec:
containers:
- name: ubuntu
image: ubuntu:24.04
command:
- 'bash'
- '-c'
- >
echo "############# Setting up the tools...";
apt update && apt install vim curl git jq apache2-utils dnsutils traceroute -y;
curl -fL -s https://install-cli.jfrog.io | sh;
echo "############# Done. Sleeping for 30 days";
sleep 30d
# resources:
# limits:
# cpu: "2"
# memory: 100Mi
# requests:
# cpu: 5m
# memory: 50Mi