mirror of
https://github.com/bitinflow/laravel-docker-k8s.git
synced 2026-03-13 13:35:52 +00:00
32 lines
679 B
YAML
Executable File
32 lines
679 B
YAML
Executable File
kind: Deployment
|
|
apiVersion: apps/v1beta1
|
|
metadata:
|
|
name: laravel
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: laravel-app
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: laravel-app
|
|
spec:
|
|
containers:
|
|
- name: laravel-app
|
|
image: docker.io/pietheinstrengholt/laravel-on-k8s:v1
|
|
volumeMounts:
|
|
- name: app-secret
|
|
mountPath: "/var/www/html/secret"
|
|
readOnly: true
|
|
ports:
|
|
- containerPort: 80
|
|
name: pathao-port
|
|
protocol: TCP
|
|
volumes:
|
|
- name: app-secret
|
|
secret:
|
|
secretName: laravel-app-secret
|
|
imagePullSecrets:
|
|
- name: regsecret
|