test-deploy.yml
<aside>
apiVersion: apps/v1
kind: Deployment
metadata:
name: php-apache
spec:
selector:
matchLabels:
run: php-apache
replicas: 1
template:
metadata:
labels:
run: php-apache
spec:
containers:
- name: php-apache
image: kkj6235/oliveyoung-fbu-server:k8s
ports:
- containerPort: 8080
resources:
limits:
cpu: 500m
requests:
cpu: 200m
envFrom:
- configMapRef:
name: ccc-config
- secretRef:
name: ccc-secret
# volumeMounts:
# - name: php-config
# mountPath: /config
# - name: php-secret
# mountPath: /etc/secrets
# volumes:
# - name: php-config
# configMap:
# name: ccc-config
# - name: php-secret
# secret:
# secretName: ccc-secret
</aside>