Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
curso-kubernetes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Ernesto Suarez
curso-kubernetes
Commits
df9554e9
Commit
df9554e9
authored
Jun 02, 2019
by
Jose Ernesto Suarez Font
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
volume provisioning
parent
665b0d73
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
0 deletions
+45
-0
Dockerfile
volumes/Dockerfile
+14
-0
index.html
volumes/index.html
+11
-0
webserver.yaml
volumes/webserver.yaml
+20
-0
No files found.
volumes/Dockerfile
0 → 100644
View file @
df9554e9
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
volumes/index.html
0 → 100644
View file @
df9554e9
<!DOCTYPE html>
<html>
<head>
<title>
Webserver
</title>
</head>
<body>
<div>
<h1>
Hello Everybody!
</h1>
</div>
</body>
</html>
\ No newline at end of file
volumes/webserver.yaml
0 → 100644
View file @
df9554e9
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment