apiVersion: apps/v1 kind: Deployment metadata: name: tomcat-beaut labels: app: tomcat-beaut spec: replicas: 1 selector: matchLabels: app: tomcat-beaut template: metadata: labels: app: tomcat-beaut spec: containers: - name: tomcat-beaut image: 10.9.12.201/xingdian/beaut:20230725-113213 ports: - containerPort: 8080 env: - name: TZ value: Asia/Shanghai --- apiVersion: v1 kind: Service metadata: name: tomcat-service spec: selector: app: tomcat-beaut type: NodePort ports: - port: 8080 targetPort: 8080 nodePort: 30014