-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathk8s-manifest.yaml
More file actions
81 lines (81 loc) · 1.67 KB
/
Copy pathk8s-manifest.yaml
File metadata and controls
81 lines (81 loc) · 1.67 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: v1
kind: Namespace
metadata:
name: dc-fabric-scenario
---
apiVersion: v1
kind: Secret
metadata:
name: dc-scenario-hec
namespace: dc-fabric-scenario
type: Opaque
stringData:
HEC_URL: "https://your-splunk:8088/services/collector"
HEC_TOKEN: "your-hec-token-here"
HEC_INDEX: "main"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dc-scenario-controller
namespace: dc-fabric-scenario
labels:
app: dc-scenario-controller
spec:
replicas: 1
selector:
matchLabels:
app: dc-scenario-controller
template:
metadata:
labels:
app: dc-scenario-controller
spec:
containers:
- name: scenario-controller
image: dc-scenario-controller:latest
ports:
- containerPort: 8080
envFrom:
- secretRef:
name: dc-scenario-hec
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
---
apiVersion: v1
kind: Service
metadata:
name: dc-scenario-controller
namespace: dc-fabric-scenario
spec:
selector:
app: dc-scenario-controller
ports:
- port: 8080
targetPort: 8080
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dc-scenario-controller
namespace: dc-fabric-scenario
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: dc-scenario.emea.local
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: dc-scenario-controller
port:
number: 8080