Skip to content

Instantly share code, notes, and snippets.

@miticojo
Last active February 20, 2018 14:46
Show Gist options
  • Save miticojo/d8ad0ccb4636fa745143acc6a26814af to your computer and use it in GitHub Desktop.
Save miticojo/d8ad0ccb4636fa745143acc6a26814af to your computer and use it in GitHub Desktop.
OCP - DC with direct attach NFS volume (no PV/PVC)
apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: magento
name: magento
spec:
replicas: 1
selector:
app: magento
deploymentconfig: magento
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: magento
deploymentconfig: magento
spec:
containers:
- env:
- name: DB_SERVER
value: mariadb
- name: DB_NAME
valueFrom:
secretKeyRef:
key: database-name
name: mariadb
- name: DB_PASSWD
valueFrom:
secretKeyRef:
key: database-password
name: mariadb
- name: DB_USER
valueFrom:
secretKeyRef:
key: database-user
name: mariadb
image: prestashop/prestashop:latest
imagePullPolicy: Always
name: magento
ports:
- containerPort: 80
protocol: TCP
volumeMounts:
- mountPath: /var/www/html/var
name: magento-volume-1
volumes:
- nfs:
server: 10.244.1.4
path: "/exports"
name: magento-volume-1
triggers:
- type: ConfigChange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment