Skip to content

Commit d07a8ac

Browse files
committed
Adding files
1 parent 520d0f9 commit d07a8ac

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
*.swp
2+
# Compiled source #
3+
###################
4+
*.com
5+
*.class
6+
*.dll
7+
*.exe
8+
*.o
9+
*.so
10+
11+
# Packages #
12+
############
13+
# it's better to unpack these files and commit the raw source
14+
# git has its own built in compression methods
15+
*.7z
16+
*.dmg
17+
*.gz
18+
*.iso
19+
*.jar
20+
*.rar
21+
*.tar
22+
*.zip
23+
24+
# Logs and databases #
25+
######################
26+
*.log
27+
*.sql
28+
*.sqlite
29+
30+
# OS generated files #
31+
######################
32+
.DS_Store
33+
.DS_Store?
34+
._*
35+
.Spotlight-V100
36+
.Trashes
37+
ehthumbs.db
38+
Thumbs.db

kubernetes/hugo/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Deploying my blog using Kubernetes
2+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: apps/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: myblog
5+
labels:
6+
app: hugo
7+
spec:
8+
replicas: 3
9+
selector:
10+
matchLabels:
11+
app: hugo
12+
template:
13+
metadata:
14+
labels:
15+
app: hugo
16+
spec:
17+
containers:
18+
- name: hugo
19+
image: tuxisma/blog:0.0.2
20+
ports:
21+
- containerPort: 1313

kubernetes/hugo/myblog-svc.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: myblog
5+
labels:
6+
app: hugo
7+
spec:
8+
ports:
9+
- port: 1313
10+
targetPort: 1313
11+
type: NodePort
12+
selector:
13+
app: hugo

0 commit comments

Comments
 (0)