cleanup
This commit is contained in:
parent
0b62da643d
commit
2d9dd339d0
@ -7,6 +7,7 @@ Mais pour commencer on va utiliser sqlite :)
|
|||||||
Comment reproduire:
|
Comment reproduire:
|
||||||
#wget https://raw.githubusercontent.com/bpatrik/pigallery2/master/docker/docker-compose/with-mysql/docker-compose.yml
|
#wget https://raw.githubusercontent.com/bpatrik/pigallery2/master/docker/docker-compose/with-mysql/docker-compose.yml
|
||||||
wget https://raw.githubusercontent.com/bpatrik/pigallery2/master/docker/docker-compose/pigallery2-only/docker-compose.yml
|
wget https://raw.githubusercontent.com/bpatrik/pigallery2/master/docker/docker-compose/pigallery2-only/docker-compose.yml
|
||||||
|
# remove local path and use config:, images:,tmp: + champs volume à adapter
|
||||||
kompose convert
|
kompose convert
|
||||||
#rm nginx*
|
#rm nginx*
|
||||||
+ tuning
|
+ tuning
|
||||||
|
|||||||
@ -3,8 +3,8 @@ kind: PersistentVolumeClaim
|
|||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: pigallery2-claim0
|
io.kompose.service: config
|
||||||
name: pigallery2-claim0
|
name: config
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
@ -1,18 +0,0 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
|
||||||
pigallery2:
|
|
||||||
image: bpatrik/pigallery2:latest
|
|
||||||
container_name: pigallery2
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=production
|
|
||||||
volumes:
|
|
||||||
- "./pigallery2/config:/app/data/config" # CHANGE ME
|
|
||||||
- "db-data:/app/data/db"
|
|
||||||
- "./pigallery2/images:/app/data/images" # CHANGE ME
|
|
||||||
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
|
|
||||||
ports:
|
|
||||||
- 80:80
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
db-data:
|
|
||||||
@ -3,8 +3,8 @@ kind: PersistentVolumeClaim
|
|||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: pigallery2-claim2
|
io.kompose.service: images
|
||||||
name: pigallery2-claim2
|
name: images
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
25
ingress.yml
Normal file
25
ingress.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: "pigallery2-ingress"
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "traefik"
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: "web,websecure"
|
||||||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- "npics.opti.cabillot.eu"
|
||||||
|
secretName: "npicscabilloteu-tls"
|
||||||
|
rules:
|
||||||
|
- host: "npics.opti.cabillot.eu"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: "/"
|
||||||
|
pathType: "Prefix"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: "pigallery2"
|
||||||
|
port:
|
||||||
|
name: "http"
|
||||||
11
kustomization.yaml
Normal file
11
kustomization.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- config-persistentvolumeclaim.yaml
|
||||||
|
- db-data-persistentvolumeclaim.yaml
|
||||||
|
- images-persistentvolumeclaim.yaml
|
||||||
|
- ingress.yml
|
||||||
|
- pigallery2-deployment.yaml
|
||||||
|
- pigallery2-service.yaml
|
||||||
|
- tmp-persistentvolumeclaim.yaml
|
||||||
@ -1,53 +1,52 @@
|
|||||||
apiVersion: extensions/v1beta1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
name: "pigallery2"
|
||||||
kompose.cmd: kompose convert
|
|
||||||
kompose.version: 1.16.0 (0c01309)
|
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: pigallery2
|
io.kompose.service: pigallery2
|
||||||
name: pigallery2
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: pigallery2
|
io.kompose.service: pigallery2
|
||||||
|
app: "pigallery2"
|
||||||
spec:
|
spec:
|
||||||
|
automountServiceAccountToken: false
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- name: "pigallery2"
|
||||||
|
image: "bpatrik/pigallery2:latest-debian-buster"
|
||||||
|
env:
|
||||||
- name: NODE_ENV
|
- name: NODE_ENV
|
||||||
value: production
|
value: production
|
||||||
image: bpatrik/pigallery2:latest
|
|
||||||
name: pigallery2
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
resources: {}
|
resources: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app/data/config
|
- mountPath: /app/data/config
|
||||||
name: pigallery2-claim0
|
name: config
|
||||||
- mountPath: /app/data/db
|
- mountPath: /app/data/db
|
||||||
name: db-data
|
name: db-data
|
||||||
- mountPath: /app/data/images
|
- mountPath: /app/data/images
|
||||||
name: pigallery2-claim2
|
name: images
|
||||||
- mountPath: /app/data/tmp
|
- mountPath: /app/data/tmp
|
||||||
name: pigallery2-claim3
|
name: tmp
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: pigallery2-claim0
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: pigallery2-claim0
|
claimName: config
|
||||||
- name: db-data
|
- name: db-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: db-data
|
claimName: db-data
|
||||||
- name: pigallery2-claim2
|
- name: images
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: pigallery2-claim2
|
claimName: images
|
||||||
- name: pigallery2-claim3
|
- name: tmp
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: pigallery2-claim3
|
claimName: tmp
|
||||||
status: {}
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: "pigallery2"
|
||||||
|
|||||||
@ -3,8 +3,8 @@ kind: PersistentVolumeClaim
|
|||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: pigallery2-claim3
|
io.kompose.service: tmp
|
||||||
name: pigallery2-claim3
|
name: tmp
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
Loading…
x
Reference in New Issue
Block a user