forked from project-flotta/osbuild-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy_edge_commit.yaml
54 lines (54 loc) · 996 Bytes
/
deploy_edge_commit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: edge-commit
labels:
app: edge-commit
spec:
replicas: 1
selector:
matchLabels:
app: edge-commit
template:
metadata:
labels:
app: edge-commit
spec:
imagePullSecrets:
- name: osbuild-registry-credentials
containers:
- name: edge-commit
image: container-registry-osbuild.apps.my-cluster.example.com/osbuild/default/osbuildconfigsample:1
ports:
- containerPort: 8080
name: http
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: edge-commit
spec:
selector:
app: edge-commit
ports:
- protocol: TCP
port: 8080
targetPort: 8080
name: http
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: edge-commit
spec:
port:
targetPort: http
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: edge-commit
weight: 100