volume provisioning

parent 665b0d73
FROM debian:jessie
RUN apt-get update && apt-get install -y apache2 && apt-get clean
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
RUN chown -R www-data:www-data /var/www/html/*
RUN echo $(find /var/www/html -type f | wc -l)
EXPOSE 80
ENTRYPOINT ["/usr/sbin/apache2ctl"]
CMD ["-D", "FOREGROUND"]
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Webserver</title>
</head>
<body>
<div>
<h1>Hello Everybody!</h1>
</div>
</body>
</html>
\ No newline at end of file
apiVersion: v1
kind: Pod
metadata:
name: webserver
labels:
app: web
spec:
containers:
- name: demo
image: eu.gcr.io/wdps-prj-terraform-e8b60c97/web-empty:v1
ports:
- containerPort: 80
volumeMounts:
- mountPath: /var/www/html/
name: test-volume
volumes:
- name: test-volume
gcePersistentDisk:
pdName: mi-volumen
fsType: ext4
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment