Add application-set

This commit is contained in:
Thomas Philipona 2022-11-01 09:01:03 +01:00
parent 10b6d0b2cd
commit e161343abc
No known key found for this signature in database
GPG Key ID: 48284CEF6E0F9F77
6 changed files with 64 additions and 0 deletions

View File

View File

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: matrix-application-1
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: matrix-application-1
template:
metadata:
labels:
app: matrix-application-1
spec:
containers:
- image: quay.io/acend/example-web-go
name: matrix-application-1
ports:
- containerPort: 5000

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: matrix-application-1
spec:
ports:
- port: 5000
protocol: TCP
targetPort: 5000
selector:
app: matrix-application-1
type: ClusterIP

View File

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: matrix-application-2
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: matrix-application-2
template:
metadata:
labels:
app: matrix-application-2
spec:
containers:
- image: quay.io/acend/example-web-go
name: matrix-application-2
ports:
- containerPort: 5000

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: matrix-application-2
spec:
ports:
- port: 5000
protocol: TCP
targetPort: 5000
selector:
app: matrix-application-2
type: ClusterIP

View File