Initial commit
This commit is contained in:
commit
a267b572a3
23 changed files with 2173 additions and 0 deletions
91
test/mesh-test/cluster1.yaml
Normal file
91
test/mesh-test/cluster1.yaml
Normal file
|
@ -0,0 +1,91 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: rebel-base
|
||||
annotations:
|
||||
service.cilium.io/global: "true"
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
selector:
|
||||
name: rebel-base
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: rebel-base
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
name: rebel-base
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
name: rebel-base
|
||||
spec:
|
||||
containers:
|
||||
- name: rebel-base
|
||||
image: docker.io/nginx:1.15.8
|
||||
volumeMounts:
|
||||
- name: html
|
||||
mountPath: /usr/share/nginx/html/
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
periodSeconds: 1
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
volumes:
|
||||
- name: html
|
||||
configMap:
|
||||
name: rebel-base-response
|
||||
items:
|
||||
- key: message
|
||||
path: index.html
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: rebel-base-response
|
||||
data:
|
||||
message: "{\"Galaxy\": \"Alderaan\", \"Cluster\": \"Cluster-1\"}\n"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: x-wing
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
name: x-wing
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
name: x-wing
|
||||
spec:
|
||||
containers:
|
||||
- name: x-wing-container
|
||||
image: docker.io/cilium/json-mock:1.2
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- curl
|
||||
- -sS
|
||||
- -o
|
||||
- /dev/null
|
||||
- localhost
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- curl
|
||||
- -sS
|
||||
- -o
|
||||
- /dev/null
|
||||
- localhost
|
91
test/mesh-test/cluster2.yaml
Normal file
91
test/mesh-test/cluster2.yaml
Normal file
|
@ -0,0 +1,91 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: rebel-base
|
||||
annotations:
|
||||
service.cilium.io/global: "true"
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
selector:
|
||||
name: rebel-base
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: rebel-base
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
name: rebel-base
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
name: rebel-base
|
||||
spec:
|
||||
containers:
|
||||
- name: rebel-base
|
||||
image: docker.io/nginx:1.15.8
|
||||
volumeMounts:
|
||||
- name: html
|
||||
mountPath: /usr/share/nginx/html/
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
periodSeconds: 1
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
volumes:
|
||||
- name: html
|
||||
configMap:
|
||||
name: rebel-base-response
|
||||
items:
|
||||
- key: message
|
||||
path: index.html
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: rebel-base-response
|
||||
data:
|
||||
message: "{\"Galaxy\": \"Alderaan\", \"Cluster\": \"Cluster-2\"}\n"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: x-wing
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
name: x-wing
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
name: x-wing
|
||||
spec:
|
||||
containers:
|
||||
- name: x-wing-container
|
||||
image: docker.io/cilium/json-mock:1.2
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- curl
|
||||
- -sS
|
||||
- -o
|
||||
- /dev/null
|
||||
- localhost
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- curl
|
||||
- -sS
|
||||
- -o
|
||||
- /dev/null
|
||||
- localhost
|
Loading…
Add table
Add a link
Reference in a new issue