Skip to content

Commit 24b964d

Browse files
committed
Adding files for the 4 for bonus points
1 parent 270f099 commit 24b964d

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

k8s/deployment-cicd.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: kiii-cicd
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: kiii-cicd
10+
template:
11+
metadata:
12+
labels:
13+
app: kiii-cicd
14+
spec:
15+
containers:
16+
- name: kiii-cicd
17+
image: macccy/kiii-app:latest
18+
imagePullPolicy: Always
19+
ports:
20+
- containerPort: 8082
21+
env:
22+
- name: ASPNETCORE_URLS
23+
value: "http://0.0.0.0:8082"

k8s/kubectl

Whitespace-only changes.

k8s/service-cicd.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: kiii-cicd-service
5+
spec:
6+
type: NodePort
7+
selector:
8+
app: kiii-cicd
9+
ports:
10+
- port: 8082
11+
targetPort: 8082
12+
nodePort: 30080

0 commit comments

Comments
 (0)