mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-08-28 19:42:43 +00:00
pls werk
This commit is contained in:
@@ -8,7 +8,7 @@ metadata:
|
||||
spec:
|
||||
params:
|
||||
- name: yaml-location
|
||||
default: infra/deploy.yaml
|
||||
default: infra/deploy-example.yaml
|
||||
- name: command
|
||||
default: apply
|
||||
- name: deploy-name
|
||||
@@ -20,8 +20,8 @@ spec:
|
||||
- name: update-yaml
|
||||
image: alpine
|
||||
script: |
|
||||
sed -i -e s;DEPLOY_NAME;$(params.deploy-name);g $(params.yaml-location)
|
||||
sed -i -e s;DEPLOY_VERSION;$(params.deploy-version);g $(params.yaml-location)
|
||||
sed -i -e 's;DEPLOY_NAME;$(params.deploy-name);g' $(params.yaml-location)
|
||||
sed -i -e 's;DEPLOY_VERSION;$(params.deploy-version);g' $(params.yaml-location)
|
||||
- name: deploy-new-app
|
||||
image: lachlanevenson/k8s-kubectl
|
||||
command: ["kubectl"]
|
||||
|
@@ -40,4 +40,4 @@ spec:
|
||||
- name: https
|
||||
protocol: TCP
|
||||
port: 443
|
||||
targetPort: 443
|
||||
targetPort: 443
|
||||
|
43
deploy-example.yaml-e
Normal file
43
deploy-example.yaml-e
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: DEPLOY_NAME-DEPLOY_VERSION
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: DEPLOY_NAME
|
||||
version: DEPLOY_VERSION
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: DEPLOY_NAME
|
||||
version: DEPLOY_VERSION
|
||||
spec:
|
||||
containers:
|
||||
- name: main
|
||||
image: beppev/DEPLOY_NAME:DEPLOY_VERSION
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 443
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: DEPLOY_NAME-service
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
app: DEPLOY_NAME
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
- name: https
|
||||
protocol: TCP
|
||||
port: 443
|
||||
targetPort: 443
|
0
infra/deploy-example.yaml
Normal file
0
infra/deploy-example.yaml
Normal file
Reference in New Issue
Block a user