-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.yaml
50 lines (50 loc) · 963 Bytes
/
manifest.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
---
apiVersion: v1
kind: ConfigMap
metadata:
name: alpine-configmap
data:
example-config.txt: |
dmVyeSBpbXBvcnRhbnQgZmlsZQ==
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: alpine-deployment
spec:
replicas: 1
selector:
matchLabels:
app: alpine
template:
metadata:
labels:
app: alpine
spec:
containers:
- name: alpine-container
image: alpine:3.18.2 # Use the Alpine Linux image
command: ["/bin/sh"]
args: ["-c", "nc -lnvp 8080"]
ports:
- containerPort: 8080
volumeMounts:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
configMap:
name: alpine-configmap
---
apiVersion: v1
kind: Service
metadata:
name: alpine-service
spec:
selector:
app: alpine
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: NodePort