Skip to content

Commit

Permalink
Add service
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Sep 29, 2023
1 parent 3a06c39 commit 882f378
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/passes/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ metadata:
name: passes
namespace: default
labels:
run: passes
app: passes
spec:
replicas: 1
selector:
matchLabels:
run: passes
app: passes
strategy:
rollingUpdate:
maxSurge: 1
Expand All @@ -19,7 +19,7 @@ spec:
template:
metadata:
labels:
run: passes
app: passes
spec:
volumes:
- name: secret
Expand Down
1 change: 1 addition & 0 deletions apps/passes/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- image.yaml
- service.yaml
- deploy.yaml
- httproute.yaml
17 changes: 17 additions & 0 deletions apps/passes/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: passes
name: passes
namespace: default
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
selector:
app: passes
sessionAffinity: None
type: ClusterIP

0 comments on commit 882f378

Please sign in to comment.