mirror of https://github.com/easzlab/kubeasz.git
57 lines
858 B
YAML
57 lines
858 B
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: deathstar
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 80
|
|
selector:
|
|
org: empire
|
|
class: deathstar
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: deathstar
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
org: empire
|
|
class: deathstar
|
|
template:
|
|
metadata:
|
|
labels:
|
|
org: empire
|
|
class: deathstar
|
|
spec:
|
|
containers:
|
|
- name: deathstar
|
|
image: docker.io/cilium/starwars
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: tiefighter
|
|
labels:
|
|
org: empire
|
|
class: tiefighter
|
|
spec:
|
|
containers:
|
|
- name: spaceship
|
|
image: docker.io/tgraf/netperf
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: xwing
|
|
labels:
|
|
org: alliance
|
|
class: xwing
|
|
spec:
|
|
containers:
|
|
- name: spaceship
|
|
image: docker.io/tgraf/netperf
|