Skip to main content
GeekCity

GeekCity

diff -r live/ evil/

blog
source code for this blog
Commands
Commands
a set of commands for shell, java, git and so on
Qemu
Qemu
QEMU is a generic and open source machine & userspace emulator and virtualizer
Linux
Linux
Linux is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released by Linus Torvalds
Docker
Docker
Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers
Kubernetes
Kubernetes
Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications
Data-Lake
Data-Lake
A data lake is a centralized repository that allows you to store all your structured and unstructured data at any scale
about me
about me
others

what

  • some technical notes for k8s

ben.wangzLess than 1 minutek8slinuxk8stechnical
s3fs with sidecar

what

  • mount s3 bucket with s3fs
  • use sidecar to initialize s3fs
  • share sub path of mounted fs to other containers

assumptions

  • s3
    • endpoint: http://minio.storage:9000
    • credentials can be found in the secret named minio-credentials
      • #MINIO_ROOT_PASSWORD=your_minio_root_password
        kubectl create secret generic minio-credentials \
            --from-literal=access-key=admin \
            --from-literal=access-secret=$MINIO_ROOT_PASSWORD
        
    • bucket: bucket-to-mount
      • tree of files
        • /
          • file1
          • file2
          • project-foo
            • file3
            • file4
            • dir-foo
              • file7
          • project-bar
            • file5
            • file6

ben.wangzLess than 1 minute
intro

Wang Zhi

  • email: ben.wangz@foxmail.com
  • blog: https://blog.geekcity.tech

Summary

  • experienced Java developer with 8+ years of expertise in designing and implementing scalable data processing platforms.
  • proficient in Apache Flink, Kubernetes, and handling large volumes of data.
  • proven ability to lead teams and deliver high-performance systems.
  • achieved developing data processing platforms for various companies, including Alibaba Group, ZhejiangLab and tianrang-inc.

ben.wangzAbout 3 min
commands

what

  • record some useful commands

ben.wangzLess than 1 minutecommandslinuxshelltool
git

init global config

git config --global user.name "ben.wangz"
git config --global user.email ben.wangz@foxmail.com
git config --global pager.branch false
git config --global pull.ff only
git --no-pager diff

ben.wangzLess than 1 minute
java

show gc info

jstat -gcutil $pid 1000 100

ben.wangzLess than 1 minute
k8s

completion for bash

source<(kubectl completionbash)

port forwarding


ben.wangzLess than 1 minute
mac

install rosetta for apple m1 chip

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

mac chrome access https with self-signed certificate

just type thisisunsafe after open the website


ben.wangzLess than 1 minute