1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-01 08:01:44 +00:00
gists/repos/a8115622662239a267893743f10e3918/gistfile1.txt
J. Fernando Sánchez e4985fcdb2 Add 'repos/a8115622662239a267893743f10e3918/' from commit '240a7fe825df11a00a95ba46b32011330e92b870'
git-subtree-dir: repos/a8115622662239a267893743f10e3918
git-subtree-mainline: e7a2b1fc62
git-subtree-split: 240a7fe825
2021-10-30 15:12:24 +02:00

41 lines
704 B
Plaintext

---
apiVersion: v1
kind: Namespace
metadata:
name: pruebans2
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: pruebans2
name: pruebans2
namespace: pruebans2
spec:
replicas: 1
template:
metadata:
labels:
app: pruebans2
spec:
containers:
- image: busybox:1.28
name: pruebans2
command: [ "sh", "-c", "while true; do echo $(hostname); sleep 60; done" ]
ports:
- name: http
containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: pruebans2
namespace: pruebans2
spec:
ports:
- name: pruebans2
port: 80
protocol: TCP
targetPort: 80
selector:
app: pruebans2