Skip to content

Commit 2e1cb7e

Browse files
authored
Basic k8s deployment configuration (#82)
1 parent 4aded01 commit 2e1cb7e

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

deploy/deployment.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: usuba-lb
5+
spec:
6+
selector:
7+
app: usuba
8+
ports:
9+
- protocol: "TCP"
10+
targetPort: 8080
11+
port: 80
12+
type: LoadBalancer
13+
---
14+
apiVersion: apps/v1
15+
kind: Deployment
16+
metadata:
17+
name: usuba
18+
spec:
19+
selector:
20+
matchLabels:
21+
app: usuba
22+
replicas: 1
23+
template:
24+
metadata:
25+
labels:
26+
app: usuba
27+
spec:
28+
containers:
29+
- name: usuba
30+
image: gcr.io/constellation-test-426817/usuba:latest
31+
imagePullPolicy: Always
32+
ports:
33+
- containerPort: 8080
34+
# ---
35+
# apiVersion: networking.k8s.io/v1
36+
# kind: Ingress
37+
# metadata:
38+
# name: minimal-ingress
39+
# annotations:
40+
# nginx.ingress.kubernetes.io/rewrite-target: /
41+
#spec:
42+
# defaultBackend:
43+
# service:
44+
# name: usuba-lb
45+
# port:
46+
# number: 8080
47+
# rules:
48+
# - http:
49+
# paths:
50+
# - path: /
51+
# pathType: Prefix
52+
# backend:
53+
# service:
54+
# name: verification-service
55+
# port:
56+
# number: 9090

0 commit comments

Comments
 (0)