Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ubuntu
RUN apt update
RUN apt-get install apache2 -y

ADD . /var/www/html
ENTRYPOINT apachectl -D FOREGROUND
12 changes: 12 additions & 0 deletions SVC.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: my-custom-deployment
spec:
type: NodePort
selector:
app: custom
ports:
- port: 80
targetPort: 80
nodePort: 30008
21 changes: 21 additions & 0 deletions deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: custom-deployment
labels:
app: custom
spec:
replicas: 2
selector:
matchLabels:
app: custom
template:
metadata:
labels:
app: custom
spec:
containers:
- name: custom
image: tanyabitaan/capstoneintellipaat
ports:
- containerPort: 80