-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-pod-deployment.yaml
58 lines (54 loc) · 1.13 KB
/
ubuntu-pod-deployment.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: v1
kind: ConfigMap
metadata:
name: bash-script
data:
bash.sh: |
#!/bin/bash
apt-get update
apt-get install -y curl wget dnsutils net-tools iputils-ping telnet netcat
---
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: solr-configset
# binaryData:
# solr-configset.zip: {{ "./solr/etc/solr-configset.zip" | b64encode }}
# ---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: ubuntu
name: ubuntu
spec:
replicas: 1
selector:
matchLabels:
app: ubuntu
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: ubuntu
spec:
containers:
- image: ubuntu:22.04
name: ubuntu
command: ["/bin/sleep", "3650d"]
resources: {}
volumeMounts:
- mountPath: /data
name: bash-script
# - mountPath: /solr-configset
# name: solr-configset
volumes:
- name: bash-script
configMap:
name: bash-script
defaultMode: 0777
# - name: solr-configset
# configMap:
# name: solr-configset