Commit dc4155c5 authored by Marco Lorini's avatar Marco Lorini
Browse files

2020-11-03 ML: add externalDNS/namespace.yaml and change application test from...

2020-11-03 ML: add externalDNS/namespace.yaml and change application test from helloword to librespeed
parent c57a0bd9
# namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: external-dns
......@@ -2,26 +2,34 @@
apiVersion: types.kubefed.io/v1beta1
kind: FederatedDeployment
metadata:
name: fed-helloworld
namespace: fed-namespace
name: fed-librespeed
namespace: fed-librespeed
spec:
template:
metadata:
name: helloworld
name: fed-librespeed
namespace: fed-librespeed
spec:
replicas: 2
selector:
matchLabels:
app: helloworld
app: librespeed
template:
metadata:
labels:
app: helloworld
app: librespeed
spec:
containers:
- image: docker.io/csdgarr/hello-world:v1
name: helloworld
- image: adolfintel/speedtest:latest
imagePullPolicy: IfNotPresent
name: librespeed
ports:
- name: http
containerPort: 80
protocol: TCP
env:
- name: TITLE
value: "GARR <3 LibreSpeed"
placement:
clusters:
- name: member-cluster-1
......
......@@ -2,23 +2,23 @@
apiVersion: types.kubefed.io/v1beta1
kind: FederatedIngress
metadata:
name: fed-helloworld-ingress
namespace: fed-namespace
name: fed-librespeed-ingress
namespace: fed-librespeed
spec:
template:
metadata:
name: helloworld-ingress
name: fed-librespeed-ingress
labels:
app: helloworld
app: librespeed
spec:
rules:
- host: helloworld.<domain>
- host: librespeed.<domain>
http:
paths:
- path: /
backend:
serviceName: fed-helloworld-service
servicePort: 8080
serviceName: fed-librespeed-service
servicePort: 80
placement:
clusters:
- name: member-cluster-1
......
......@@ -2,8 +2,8 @@
apiVersion: types.kubefed.io/v1beta1
kind: FederatedNamespace
metadata:
name: fed-namespace
namespace: fed-namespace
name: fed-librespeed
namespace: fed-librespeed
spec:
placement:
clusters:
......
......@@ -2,22 +2,22 @@
apiVersion: types.kubefed.io/v1beta1
kind: FederatedService
metadata:
name: fed-helloworld-service
namespace: fed-namespace
name: fed-librespeed-service
namespace: fed-librespeed
spec:
template:
metadata:
name: fed-helloworld-service
name: fed-librespeed-service
labels:
app: helloworld
app: librespeed
spec:
selector:
app: helloworld
app: librespeed
type: ClusterIP
ports:
- name: http
port: 8080
targetPort: 8080
port: 80
targetPort: 80
protocol: TCP
placement:
clusters:
......
# namespace.yaml file
# namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: fed-namespace
name: fed-librespeed
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment