-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeployment.yaml
More file actions
36 lines (36 loc) · 825 Bytes
/
Copy pathdeployment.yaml
File metadata and controls
36 lines (36 loc) · 825 Bytes
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
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: angular-k8-app-deploy
spec:
selector:
matchLabels:
app: angular-k8-app
replicas: 2
template:
metadata:
labels:
app: angular-k8-app
spec:
containers:
- name: angular-k8-app
image: hyc-urx-docker-local.artifactory.swg-devops.com/urx-cloud/poc/angular-k8-app:latest
ports:
- containerPort: 80
---
# See more here https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
kind: Service
apiVersion: v1
metadata:
name: angular-k8-app-service
labels:
app: angular-k8s-app
spec:
selector:
app: angular-k8-app
ports:
- protocol: TCP
name: http
port: 80
targetPort: 80
type: NodePort