Skip to content

Commit 5cd5de8

Browse files
authored
Merge pull request #374 from ericsmalling/main
Latest k8s stuff
2 parents 742fb5f + 999d63b commit 5cd5de8

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

todolist-goof/k8s/java-goof3.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
labels:
6+
app: goof
7+
name: goof
8+
namespace: default
9+
spec:
10+
replicas: 1
11+
selector:
12+
matchLabels:
13+
app: goof
14+
template:
15+
metadata:
16+
labels:
17+
app: goof
18+
spec:
19+
containers:
20+
- image: ${DOCKER_ACCOUNT}/java-goof:latest
21+
imagePullPolicy: Always
22+
name: java-goof
23+
securityContext:
24+
readOnlyRootFilesystem: true
25+
volumeMounts:
26+
- mountPath: /usr/local/tomcat/temp
27+
name: tomcat-temp
28+
- mountPath: /usr/local/tomcat/work
29+
name: tomcat-work
30+
- mountPath: /usr/local/tomcat/logs
31+
name: tomcat-logs
32+
restartPolicy: Always
33+
volumes:
34+
- name: tomcat-temp
35+
emptyDir: {}
36+
- name: tomcat-work
37+
emptyDir: {}
38+
- name: tomcat-logs
39+
emptyDir: {}
40+
41+
---
42+
apiVersion: v1
43+
kind: Service
44+
metadata:
45+
labels:
46+
app: goof
47+
name: goof
48+
spec:
49+
type: LoadBalancer
50+
ports:
51+
- port: 80
52+
protocol: TCP
53+
targetPort: 8080
54+
selector:
55+
app: goof

0 commit comments

Comments
 (0)