Skip to content

Commit dba0950

Browse files
authored
kustomize added (#22)
1 parent 58a400b commit dba0950

4 files changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
# - .github
1010
# - .scripts
1111
# - .charts
12+
- kustomize
1213
- LICENSE
1314
- README.md
1415
- build.sh

kustomize/deployment.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: multi-arch-container-rust
5+
labels:
6+
app: multi-arch-container-rust
7+
spec:
8+
replicas: 1
9+
revisionHistoryLimit: 2
10+
selector:
11+
matchLabels:
12+
app: multi-arch-container-rust
13+
template:
14+
metadata:
15+
labels:
16+
app: multi-arch-container-rust
17+
spec:
18+
containers:
19+
- name: primary
20+
image: ghcr.io/f2calv/multi-arch-container-rust:dev
21+
imagePullPolicy: Always
22+
ports:
23+
- name: http
24+
containerPort: 80
25+
protocol: TCP
26+
# livenessProbe
27+
# readinessProbe
28+
# startupProbe
29+
env:
30+
- name: "RUST_LOG"
31+
value: "Debug"
32+
resources:
33+
requests:
34+
cpu: 50m
35+
memory: 64Mi
36+
limits:
37+
cpu: 200m
38+
memory: 256Mi

kustomize/kustomization.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- deployment.yaml
5+
- service.yaml

kustomize/service.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: multi-arch-container-rust-svc
5+
spec:
6+
type: ClusterIP
7+
ports:
8+
- name: http
9+
protocol: TCP
10+
port: 80
11+
targetPort: 80
12+
selector:
13+
app: multi-arch-container-rust

0 commit comments

Comments
 (0)