fix: use k9s for deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c89d3657ee
commit
ba00a13874
60
.drone.yml
60
.drone.yml
@ -38,23 +38,49 @@ steps:
|
|||||||
- 'latest'
|
- 'latest'
|
||||||
|
|
||||||
|
|
||||||
# deploy to kubernetes
|
# kubernetes deployment
|
||||||
- image: 'docker.io/bitnami/kubectl'
|
---
|
||||||
name: 'deploy'
|
kind: 'pipeline'
|
||||||
pull: 'always'
|
name: 'deployment'
|
||||||
when:
|
type: 'kubernetes'
|
||||||
branch:
|
|
||||||
- 'main'
|
|
||||||
event:
|
|
||||||
- 'push'
|
|
||||||
|
|
||||||
settings:
|
depends_on:
|
||||||
mtu: '1440'
|
- 'build'
|
||||||
|
|
||||||
environment:
|
# disable clone
|
||||||
KUBE_CONFIG:
|
clone:
|
||||||
from_secret: 'drone_kube_config_kaas'
|
disable: true
|
||||||
|
|
||||||
commands:
|
# deployment step
|
||||||
- 'echo "$KUBE_CONFIG" > $HOME/.kube/config'
|
steps:
|
||||||
- 'kubectl -n roundcube rollout restart statefulsets roundcube-app'
|
|
||||||
|
# kubernetes deployment
|
||||||
|
- name: 'kubernetes deployment'
|
||||||
|
image: 'docker.io/appleboy/drone-ssh:1'
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- 'master'
|
||||||
|
event:
|
||||||
|
- 'push'
|
||||||
|
|
||||||
|
settings:
|
||||||
|
|
||||||
|
# bastion
|
||||||
|
proxy_host: 'siempie.com'
|
||||||
|
proxy_port: '22'
|
||||||
|
proxy_user:
|
||||||
|
from_secret: 'drone_user'
|
||||||
|
proxy_key:
|
||||||
|
from_secret: 'drone_ssh_key'
|
||||||
|
|
||||||
|
# k9s
|
||||||
|
host: 'k9s.siempie.internal'
|
||||||
|
port: '22'
|
||||||
|
user:
|
||||||
|
from_secret: 'drone_user'
|
||||||
|
key:
|
||||||
|
from_secret: 'drone_ssh_key'
|
||||||
|
script:
|
||||||
|
|
||||||
|
# kubernetes deployment
|
||||||
|
- 'kubectl -n roundcube rollout restart statefulsets roundcube-app'
|
||||||
|
Reference in New Issue
Block a user