代码拉取完成,页面将自动刷新
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "magento.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "magento.name" . }}
helm.sh/chart: {{ include "magento.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: {{ include "magento.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "magento.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ssh.access: php
spec:
hostAliases:
- ip: {{ .Values.global.dns.magentoHosts.ip }}
hostnames: {{ .Values.global.dns.magentoHosts.hostnames }}
containers:
- name: {{ .Chart.Name }}
image: magento2-monolith:dev
imagePullPolicy: Never
securityContext:
privileged: true
ports:
- containerPort: {{ .Values.global.monolith.service.phpFpmPort }}
volumeMounts:
- name: code
mountPath: {{.Values.global.monolith.volumeHostPath}}
env:
- name: DEVBOX_ROOT
value: {{.Values.global.monolith.volumeHostPath}}
- name: COMPOSER_HOME
value: {{.Values.global.monolith.volumeHostPath}}/.composer
- name: DEVBOX_ROOT_HOST
value: {{.Values.global.monolith.volumeHostPath}}
- name: {{ .Chart.Name }}-xdebug
image: magento2-monolith:dev-xdebug
imagePullPolicy: Never
securityContext:
privileged: true
ports:
- containerPort: {{ .Values.global.monolith.service.phpFpmXdebugPort }}
{{/*- containerPort: 22*/}}
volumeMounts:
- name: code
mountPath: {{.Values.global.monolith.volumeHostPath}}
env:
- name: DEVBOX_ROOT
value: {{.Values.global.monolith.volumeHostPath}}
- name: COMPOSER_HOME
value: {{.Values.global.monolith.volumeHostPath}}/.composer
- name: DEVBOX_ROOT_HOST
value: {{.Values.global.monolith.volumeHostPath}}
- name: {{ .Chart.Name }}-xdebug-cli-over-ssh
image: magento2-monolith:dev-xdebug-and-ssh
imagePullPolicy: Never
securityContext:
privileged: true
ports:
- containerPort: 22
volumeMounts:
- name: code
mountPath: {{.Values.global.monolith.volumeHostPath}}
env:
- name: DEVBOX_ROOT
value: {{.Values.global.monolith.volumeHostPath}}
- name: COMPOSER_HOME
value: {{.Values.global.monolith.volumeHostPath}}/.composer
- name: DEVBOX_ROOT_HOST
value: {{.Values.global.monolith.volumeHostPath}}
- name: nginx
image: nginx:1.9
securityContext:
privileged: true
volumeMounts:
- name: code
mountPath: {{.Values.global.monolith.volumeHostPath}}
- name: nginx-config-volume
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: varnish
image: million12/varnish
env:
- name: VCL_CONFIG
value: /etc/varnish/magento.vcl
- name: VARNISHD_PARAMS
value: "-a 0.0.0.0:{{ .Values.global.monolith.service.varnishPort }}"
volumeMounts:
- name: varnish-config-volume
mountPath: /etc/varnish/magento.vcl
subPath: varnish.vcl
volumes:
- name: nginx-config-volume
configMap:
name: {{ template "magento.fullname" . }}-nginx-config
- name: varnish-config-volume
configMap:
name: {{ template "magento.fullname" . }}-varnish-config
- name: code
{{- if .Values.global.persistence.nfs.enabled }}
persistentVolumeClaim:
claimName: {{ include "magento.fullname" . }}-claim
{{- else }}
hostPath:
path: {{.Values.global.monolith.volumeHostPath}}
{{- end }}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。