initial commit
This commit is contained in:
commit
02d18b4d18
43
app-test-1/app-test-1.yaml
Normal file
43
app-test-1/app-test-1.yaml
Normal file
@ -0,0 +1,43 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: app-test-1
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: app-test-1-deploy
|
||||
namespace: app-test-1
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: app-test-1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: app-test-1
|
||||
spec:
|
||||
containers:
|
||||
- name: app-test-1
|
||||
image: nginx
|
||||
ports:
|
||||
- name: web
|
||||
containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: app-test-1-svc
|
||||
namespace: app-test-1
|
||||
labels:
|
||||
app: app-test-1
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: app-test-1
|
||||
Loading…
Reference in New Issue
Block a user