traefik/integration/fixtures/k8s/02-services.yml

139 lines
2 KiB
YAML
Raw Normal View History

2019-03-11 13:54:05 +00:00
kind: Deployment
apiVersion: apps/v1
2019-03-11 13:54:05 +00:00
metadata:
name: whoami
namespace: default
2019-03-11 13:54:05 +00:00
labels:
app: traefiklabs
2019-03-11 13:54:05 +00:00
name: whoami
2019-03-11 13:54:05 +00:00
spec:
replicas: 2
selector:
matchLabels:
app: traefiklabs
2019-03-11 13:54:05 +00:00
task: whoami
template:
metadata:
labels:
app: traefiklabs
2019-03-11 13:54:05 +00:00
task: whoami
spec:
containers:
- name: whoami
image: traefik/whoami
2019-03-11 13:54:05 +00:00
ports:
- containerPort: 80
2019-03-11 13:54:05 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: whoami
namespace: default
2019-03-11 13:54:05 +00:00
spec:
ports:
- name: http
port: 80
selector:
app: traefiklabs
2019-03-11 13:54:05 +00:00
task: whoami
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: whoamitcp
namespace: default
labels:
app: traefiklabs
name: whoamitcp
spec:
replicas: 2
selector:
matchLabels:
app: traefiklabs
task: whoamitcp
template:
metadata:
labels:
app: traefiklabs
task: whoamitcp
spec:
containers:
- name: whoamitcp
image: traefik/whoamitcp
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: whoamitcp
namespace: default
spec:
ports:
- name: footcp
port: 8080
selector:
app: traefiklabs
task: whoamitcp
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: whoamiudp
namespace: default
labels:
app: traefiklabs
name: whoamiudp
spec:
replicas: 2
selector:
matchLabels:
app: traefiklabs
task: whoamiudp
template:
metadata:
labels:
app: traefiklabs
task: whoamiudp
spec:
containers:
- name: whoamiudp
image: traefik/whoamiudp:latest
ports:
- containerPort: 8090
---
apiVersion: v1
kind: Service
metadata:
name: whoamiudp
namespace: default
spec:
ports:
- protocol: UDP
name: fooudp
port: 8090
selector:
app: traefiklabs
task: whoamiudp
---
apiVersion: v1
kind: Service
metadata:
name: externalname-svc
namespace: default
spec:
externalName: domain.com
type: ExternalName