checkpoint 2 part 1 finished, needs to be properly tested
This commit is contained in:
parent
ce3ea05831
commit
c3f67d4582
14 changed files with 306 additions and 26 deletions
29
roles/laravelio_deploy/templates/laravelio-deployment.yml
Normal file
29
roles/laravelio_deploy/templates/laravelio-deployment.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
# Deployment for Laravelio
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: laravelio-deployment
|
||||
labels:
|
||||
app: laravelio
|
||||
tier: app
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: laravelio
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: laravelio
|
||||
tier: app
|
||||
spec:
|
||||
containers:
|
||||
- name: laravelio
|
||||
image: crispyjeasus/laravelio:latest
|
||||
envFrom: # The variables below could be set on a ConfigMap object
|
||||
- configMapRef:
|
||||
name: laravelio-config
|
||||
ports:
|
||||
- containerPort: 8000
|
16
roles/laravelio_deploy/templates/laravelio-service.yml
Normal file
16
roles/laravelio_deploy/templates/laravelio-service.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
# Service for exposing Laravel
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: laravelio-service # logical name of the service, which will also become the DNS name of the service when it is created.
|
||||
labels:
|
||||
app: laravelio
|
||||
tier: app
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: laravelio
|
||||
ports:
|
||||
- port: 30000
|
||||
targetPort: 8000
|
Loading…
Add table
Add a link
Reference in a new issue