-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
51 lines (50 loc) · 953 Bytes
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-apiservice
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: demo-apiservice
template:
metadata:
labels:
app: demo-apiservice
spec:
containers:
- name: apiservice
image: 'rynowak/demo-apiservice:latest'
imagePullPolicy: Always
ports:
- containerPort: 7443
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: demo-apiservice
namespace: default
spec:
ports:
- port: 443
protocol: TCP
targetPort: 7443
selector:
app: demo-apiservice
---
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1alpha1.api.example.com
namespace: default
spec:
group: api.example.com
groupPriorityMinimum: 1000
versionPriority: 15
service:
name: demo-apiservice
namespace: default
version: v1alpha1
insecureSkipTLSVerify: true