Skip to content

Commit d784de4

Browse files
committed
version 1.0.3
1 parent 1aba5d6 commit d784de4

6 files changed

Lines changed: 62 additions & 17 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ node_modules
6060

6161
#creds
6262
gcp_creds.json
63+
64+
#secrets
65+
secret.yaml

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.2
1+
1.0.3

deployment.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: hackboard
5+
spec:
6+
selector:
7+
matchLabels:
8+
run: hackboard
9+
replicas: 1
10+
template:
11+
metadata:
12+
labels:
13+
run: hackboard
14+
spec:
15+
volumes:
16+
- name: secret-volume
17+
secret:
18+
secretName: hackboard-secret
19+
containers:
20+
- name: hackboard
21+
image: gcr.io/mchacks-api/hackboard:1.0.2
22+
ports:
23+
# - containerPort: 443
24+
- containerPort: 8080

ingress.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
apiVersion: extensions/v1beta1
22
kind: Ingress
33
metadata:
4-
name: basic-ingress
4+
name: hackboard-ingress
5+
annotations:
6+
kubernetes.io/ingress.global-static-ip-name: hackboard-ingress-static-ip
57
spec:
8+
# tls:
9+
# - secretName: hackboard-secret
10+
# rules:
11+
# - http:
12+
# paths:
13+
# - path: /*
614
backend:
7-
serviceName: hackboard
8-
servicePort: 8080
15+
serviceName: hackboard-service
16+
servicePort: 80

service.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: hackboard-service
5+
labels:
6+
run: hackboard # because that's the label on the deployment (not sure what labels do tho)
7+
# annotations:
8+
# cloud.google.com/app-protocols: '{"hackboard-https-port":"HTTPS","hackboard-http-port":"HTTP"}'
9+
spec:
10+
selector:
11+
run: hackboard # because that's the selector on the deployment (not sure what labels do tho)
12+
ports:
13+
- name: http #hackboard-http-port
14+
protocol: TCP
15+
port: 80
16+
targetPort: 8080 # because the deployment port is 80/TCP
17+
# - name: hackboard-https-port
18+
# protocol: TCP
19+
# port: 443
20+
type: LoadBalancer
21+
22+
# endpoint of service same as ip of pods -> means communication between service and pod (direction?)
23+
# can talk to this service with cluster-ip:port from any other node on cluster

service.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)