Skip to content

Commit 46b48cf

Browse files
committed
chore(deploy): add service account
1 parent 83de938 commit 46b48cf

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

deploy/prod/etherface/deploy.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ metadata:
66
app: etherface
77
component: etherface
88
spec:
9-
replicas: 1
9+
replicas: 0
10+
serviceAccountName: etherface
1011
selector:
1112
matchLabels:
1213
app: etherface
@@ -20,6 +21,8 @@ spec:
2021
containers:
2122
- name: etherface
2223
image: rss3/etherface
24+
imagePullPolicy: IfNotPresent
25+
2326
command: ["etherface"]
2427
envFrom:
2528
- secretRef:

deploy/prod/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ kind: Kustomization
44
resources:
55
- rest
66
- etherface
7+
- serviceaccount.yaml
78

89
images:
910
- name: rss3/etherface

deploy/prod/rest/deploy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ metadata:
77
component: rest
88
spec:
99
replicas: 1
10+
serviceAccountName: etherface
1011
selector:
1112
matchLabels:
1213
app: etherface
@@ -20,6 +21,7 @@ spec:
2021
containers:
2122
- name: etherface
2223
image: rss3/etherface
24+
imagePullPolicy: IfNotPresent
2325
command: ["etherface-rest"]
2426
ports:
2527
- containerPort: 8080

deploy/prod/serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: etherface

0 commit comments

Comments
 (0)