-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.yaml
54 lines (54 loc) · 1.05 KB
/
test.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: alpine
namespace: default
spec:
replicas: 1
revisionHistoryLimit: 0
selector:
matchLabels:
name: test
strategy:
type: Recreate
template:
metadata:
labels:
name: test
spec:
terminationGracePeriodSeconds: 1
imagePullSecrets:
- name: docker
containers:
- name: test
image: benhakim2010/php-apache:1.0
imagePullPolicy: Always
#command: ["sleep", "3600"]
#command: [ "apachectl", "-k start" ]
ports:
- name: http
protocol: TCP
containerPort: 80
- name: https
protocol: TCP
containerPort: 443
- name: admin
containerPort: 7080
---
kind: Service
apiVersion: v1
metadata:
name: ols
spec:
selector:
name: test
ports:
- protocol: TCP
port: 80
name: http
- protocol: TCP
port: 443
name: https
- protocol: TCP
port: 7080
name: admin