Forgot Google Play Keystore Password

How to use a new keystore when forgetting the old keystore password. References: https://support.google.com/googleplay/android-developer/answer/9842756?visit_id=638409667460085362-3335308105&rd=1#create https://support.google.com/googleplay/android-developer/answer/9842756?sjid=8714361814298672927-NC#create https://support.google.com/googleplay/android-developer/answer/9842756?visit_id=638409667460085362-3335308105&rd=1#reset

January 16, 2024

Effective Java Note

Item 6, Avoid creating unnecessary objects.

November 27, 2023

Kubernetes User Management

Create user CSR openssl genrsa -out ishare.key 2048 openssl req -new -key ishare.key -out ishare.csr Approve CSR openssl x509 -req -in ishare.csr -CA /etc/kubernetes/pki/ca.crt -CAkey /etc/kubernetes/pki/ca.key -CAcreateserial -out ishare.crt -days 500 Create role kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: namespace: ishare name: ishare-admin rules: - apiGroups: ["", "extensions", "apps"] resources: - "deployments" - "pods" - "services" - "statefulsets" - "secret" - "configmap" - "persistentvolumes" - "persistentvolumeclaims" verbs: - "get" - "list" - "watch" - "create" - "update" - "patch" - "delete" - apiGroups: ["storage.k8s.io"] resources: - "storageclasses" verbs: - "get" - "list" - "watch" Create role binding kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: ishare-rolebinding namespace: ishare subjects: - kind: User name: ishare apiGroup: "" roleRef: kind: Role name: ishare-admin apiGroup: "" Create .kube/config Login to the user to authorized ...

November 21, 2023

Deploy Harbor in Kubernetes with FRP + Nginx reverse proxy

References: Running Harbor with HTTP behind a HTTPS Reverse Proxy (nginx)

November 7, 2023

Kubernetes NFS Volume

1. 环境准备 Hostname OS IP Note gm-mini debian 12 192.168.31.199 KVM host, nfs export path: /var/lib/nfs gm-red Ubuntu 22.04 192.168.31.200 VM machine, k8s control-plane gm-green Ubuntu 22.04 192.168.31.201 VM machine, k8s control-plane gm-blue Ubuntu 22.04 192.168.31.202 VM machine, k8s worker gm-orange Ubuntu 22.04 192.168.31.203 VM machine, k8s worker 2. 安装nfs server 2.1. 检查兼容性 ...

November 4, 2023

Helm Cheatsheet

Concepts Chart A Chart is a helm package. It contains all resource definitions, tools, service. Repository A Repository is the place where charts collocated and shared. Release A Release is an instance of a chart running in K8S. Cheatsheet Add a chart repo helm repo add <repo-name> <repo-url> example: helm repo add bitnami https://charts.bitnami.com/bitnami List all chart repo helm repo list Update chart repo helm repo update Install chart helm install [<release-name>] <chart-name> example ...

November 3, 2023

Notes of "Kubernetes in Actions" - ConfigMap

November 2, 2023

Install KVM on Debian 12

This article is going to elaborate the whole process to install KVM on Debian 12, with Bridge network. With the power of bridge network, each VM will have its own LAN IP, and we can connect to the VM directly from other hosts in the same LAN. Install dependency packages Install QEMU deps Install qemu with GUI sudo apt install qemu-system libvirt-daemon-system virt-manager aqemu Install qemu without GUI sudo apt install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system virtinst Install bridge network deps sudo apt install dnsmasq-base bridge-utils firewalld Create bridge network KVM use NAT as the default network type, we need to create the bridge network first, and create the VM with the bridge network. ...

November 2, 2023

Notes for "Kubernetes in Actions"

Catalog Pod Service ReplicaSet Deployment StatefulSet Volumes ConfigMap

November 2, 2023

Notes of "Kubernetes in Actions" - Service

container如果需要外界访问或被其他container访问,则需要借助Kubernetes Service来完成转发。 创建Service pod-kubia.yaml apiVerison: v1 kind: Pod spec: containers: - name: kubia ports: - name: http containerPort: 8080 - name: https containerPort: 8443 service-kubia.yaml ...

November 1, 2023