Commit 00875445 authored by FabiusE's avatar FabiusE

Changed registry

parent c7eb23e0
......@@ -21,8 +21,54 @@ node {
}
stage('Deploy Container') {
kubernetes {
yamlFile 'reactymlfile.yml'
kubernetes{
yaml """
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
selector:
matchLabels:
app: app
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: app
image: fabiuse/reactdocker:latest
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: app
spec:
selector:
app: app
ports:
- port: 8080
---
apiVersion: v1
kind: Service
metadata:
name: app
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: app
"""
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment