mirror of
https://git.cluster.stumblestore.de/llamprecht/KnilchWeb.git
synced 2025-12-12 23:11:19 +01:00
added Service to deployment and improved Image Tagging
This commit is contained in:
parent
41f508ed42
commit
1207e2a6f3
3 changed files with 24 additions and 9 deletions
11
.drone.yml
11
.drone.yml
|
|
@ -22,7 +22,7 @@ steps:
|
|||
settings:
|
||||
repo: git.cluster.stumblestore.de/llamprecht/knilch-web
|
||||
auto_tag: true
|
||||
|
||||
tags: ${DRONE_COMMIT} ${DRONE_BRANCH}
|
||||
registry: git.cluster.stumblestore.de
|
||||
username: llamprecht
|
||||
password:
|
||||
|
|
@ -31,7 +31,7 @@ steps:
|
|||
- name: deploy
|
||||
image: danielgormly/drone-plugin-kube
|
||||
settings:
|
||||
template: deployment.yaml
|
||||
template: kube.yaml
|
||||
namespace: knilch-web
|
||||
server:
|
||||
from_secret: KUBE_SERVER
|
||||
|
|
@ -39,9 +39,6 @@ steps:
|
|||
from_secret: KUBE_TOKEN
|
||||
ca:
|
||||
from_secret: KUBE_CA
|
||||
|
||||
when:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- production
|
||||
branch:
|
||||
- master
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
node_modules
|
||||
built/main.js
|
||||
built/main.js
|
||||
.vscode
|
||||
|
|
@ -18,4 +18,21 @@ spec:
|
|||
- name: knilch-server
|
||||
image: git.cluster.stumblestore.de/llamprecht/knilch-web
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 80
|
||||
|
||||
--
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: knilch-server
|
||||
name: knilch-server
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: knilch-server
|
||||
|
||||
Loading…
Reference in a new issue