Task validation issue: Deploy Lamp Stack on Kubernetes Cluster

Hi team,

I have completed this task and was able to connect to the DB successfully. I used ‘envFrom’ instead of ‘env’. And there’s no option to submit this task for review.


image


code snippet:
spec:
containers:
- image: webdevops/php-apache:alpine-3-php7
name: httpd-php-container
envFrom:
- secretRef:
name: db-secrets
volumeMounts:
- name: php-config-volume
mountPath: /opt/docker/etc/php/php.ini
subPath: php.ini
- image: mysql:5.6
name: mysql-container
envFrom:
- secretRef:
name: db-secrets
volumes:
- name: php-config-volume
configMap:
name: php-config

kubectl create secret generic db-secrets --from-literal MYSQL_USER=mysqluser
–from-literal MYSQL_PASSWORD=mysqlpass --from-literal MYSQL_HOST=mysql-service
–from-literal MYSQL_DATABASE=mysqldb --from-literal MYSQL_ROOT_PASSWORD=mysqlrootpass

Could you please review?
Thanks,
Vijay

@Tej-Singh-Rana can you please take a look into this issue?

Hi @vijayyuvi,
Thanks for reaching out to me. I am checking with the team.

Regards,

1 Like

Please try again. The team has simplified this.

Regards,