Add example App

This commit is contained in:
Thomas Philipona 2020-09-02 11:47:27 +02:00
parent 92db84e448
commit eb54f2ed2a
No known key found for this signature in database
GPG Key ID: 91413DA18EA2CFBC
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-php-docker-helloworld
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: example-php-docker-helloworld
template:
metadata:
labels:
app: example-php-docker-helloworld
spec:
containers:
- image: appuio/example-php-docker-helloworld
name: example-php-docker-helloworld
ports:
- containerPort: 8080

10
example-app/svc.yaml Normal file
View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: example-php-docker-helloworld
spec:
ports:
- port: 8080
targetPort: 8080
selector:
app: example-php-docker-helloworld