Varnish using for new fresh
What is varnish
Varnish is a http cache tool for accelerating http request response.
The configuration language of varnish is named as VCL, which can handle the incomi...
how to use secret in k8s
encryption method
name
Description
Strength
Key Length
identity default
None
test
test
secretbox
XSalsa20 and Poly1305
Strong
32 byte
aesgcm
AES-GCM with random...
helm一种CI/CD工具
definition: helm可以被当做是k8s的包管理工具,利用helm可以部署自己的应用程序以及其他依赖服务应用,如redis,mysql等等。
如何在本地的k8s集群中使用helm部署服务
preparation
docker-desktop or minikube
brew install helm
using helm versio...
minimal CI/CD 工具 skaffold
阅读时长:30min
背景 项目上使用了很多的ops工具,但是每一个ops的工具又只使用了一部分的功能。其中Jenkins用来构建我们的pipeline主体框架,打包镜像是采用的skaffold中jib模式,镜像的推送采用的是jenkinsX,部署又是使用的helm...
how to set up argo-cd-config
pre
defination
argo cd is a common CD tool for kubernates
steps
create a namespace in local k8s cluster by follow cmd: kubectl create namespace argocd
pull necess...
How use local database in app
make user experience more comfortable when your app cannot access to the internet. It also can persist data in your local machine.
use annotation to create entity
@Ent...
viewModel
what?
It is used to store the UI-related data
each fragment owns itself viewModel
fragment will be created several times when the configurations are changed. However, viewModel just is cr...
fragment
fragment can be used by different activity
keep the following code which can be used to load fragment content12345678 override fun onCreateView( inflater: LayoutInflater, container: Vie...
App color and Layout
constraint
Only we set the related constraint, we can drag our element casually.
Baseline constraint
given the developer more specific location constraint.
bind the baseline of...
First Application
different views
layout
event handler
data binding
help app no need to initialize the variable each time, which can save time.
findViewById() find view will create or recreate when...