test
This commit is contained in:
35
dp_np.yaml
Normal file
35
dp_np.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: tekton-demo-deployment
|
||||
namespace: tekton-demo
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: tekton-demo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: tekton-demo
|
||||
spec:
|
||||
containers:
|
||||
- name: tekton-demo
|
||||
image: harbor.icurfer.com/open/tekton-demo:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: tekton-demo-service
|
||||
namespace: tekton-demo
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: tekton-demo
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
Reference in New Issue
Block a user