50 lines
887 B
YAML
50 lines
887 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: bbox
|
|
labels:
|
|
run: bbox
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: busybox
|
|
ports:
|
|
- port: 8000
|
|
targetPort: 8000
|
|
protocol: TCP
|
|
name: http
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: busybox
|
|
namespace: default
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: busybox
|
|
spec:
|
|
containers:
|
|
- image: busybox
|
|
name: busybox
|
|
command:
|
|
- /bin/sh
|
|
- "-c"
|
|
- "while true; do echo ping | nc -l -p 8000; done"
|
|
# - "while true; do sleep 10; done"
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: nfs-vol
|
|
ports:
|
|
- containerPort: 8000
|
|
volumes:
|
|
- name: nfs-vol
|
|
nfs:
|
|
path: /data
|
|
server: git01.itpartner.intern
|
|
readOnly: false
|
|
|
|
|