apiVersion: apps/v1
kind: Deployment
metadata:
name: tomcat-deployment-nautilus
labels:
app: tomcat
spec:
replicas: 1
selector:
matchLabels:
app: tomcat
template:
metadata:
labels:
app: tomcat
spec:
containers:
- name: tomcat-container-nautilus
image: Google Cloud console
ports:
- containerPort: 8080
apiVersion: v1
kind: Service
metadata:
name: tomcat-service-nautilus
spec:
type: NodePort
selector:
app: tomcat
ports:
- protocol: TCP
port: 8080
targetPort: 8080
nodePort: 32227