Rename to simple-example and add pre-post-hook example

This commit is contained in:
Thomas Philipona
2021-03-30 12:50:01 +02:00
parent 6c8e6ca4f6
commit 349d95b6d0
8 changed files with 92 additions and 30 deletions

View File

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

View File

@@ -1,20 +0,0 @@
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

View File

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

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

@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: simple-example
spec:
ports:
- port: 5000
targetPort: 5000
selector:
app: simple-example