{"id":21095101,"url":"https://github.com/dan-and-dna/ops","last_synced_at":"2026-04-04T16:35:08.120Z","repository":{"id":63612079,"uuid":"525378804","full_name":"DAN-AND-DNA/ops","owner":"DAN-AND-DNA","description":"我写的常用shell脚本","archived":false,"fork":false,"pushed_at":"2024-05-02T07:50:52.000Z","size":81,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T01:43:04.571Z","etag":null,"topics":["clickhouse","docker","gitea","harbor","k8s","linux","postgresql","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DAN-AND-DNA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-16T12:53:49.000Z","updated_at":"2024-05-02T07:50:55.000Z","dependencies_parsed_at":"2024-05-01T07:47:12.724Z","dependency_job_id":null,"html_url":"https://github.com/DAN-AND-DNA/ops","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DAN-AND-DNA","download_url":"https://codeload.github.com/DAN-AND-DNA/ops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538135,"owners_count":20307104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clickhouse","docker","gitea","harbor","k8s","linux","postgresql","shell"],"created_at":"2024-11-19T22:22:37.159Z","updated_at":"2025-12-31T00:25:34.552Z","avatar_url":"https://github.com/DAN-AND-DNA.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ops\n自己常用的一些linux脚本\n\n## [手动 k8s依赖的镜像源码安装](/gen_kube_install.sh)\n## [手动 k8s 部署和启动](/install.sh)\n## [安装harbor镜像仓库](/init_harbor.sh)\n## [代码仓库 gitea 安装](/init_gitea.sh)\n## [备份代码仓库 gitea](/backup_gitea.sh)\n## [linux 参数调优和hugepages](/init_env.sh)\n## [docker 安装和环境](/init_docker.sh)\n## [安装和配置postgresl](/init_postgresql.sh)\n## [systemd 托管应用](/init_drilling_cat.sh)\n## [安装和配置clickhouse](/init_ck.sh)\n## [k8s开发环境](/run_kind_k8s.sh)\n\n```shell\n[root@dandev configs]# kind create cluster --config=./kind.yml\nCreating cluster \"kind\" ...\n ✓ Ensuring node image (kindest/node:v1.25.3) 🖼\n ✓ Preparing nodes 📦 📦 📦  \n ✓ Writing configuration 📜 \n ✓ Starting control-plane 🕹️\n ✓ Installing CNI 🔌\n ✓ Installing StorageClass 💾\n ✓ Joining worker nodes 🚜\nSet kubectl context to \"kind-kind\"\nYou can now use your cluster with:\n\nkubectl cluster-info --context kind-kind\n\nThanks for using kind! 😊\n[root@dandev configs]# kubectl get pods --all-namespaces\nNAMESPACE            NAME                                         READY   STATUS                       RESTARTS   AGE\nkube-system          coredns-c676cc86f-pbsr8                      1/1     Running                      0          29s\nkube-system          coredns-c676cc86f-qsnlh                      1/1     Running                      0          29s\nkube-system          etcd-kind-control-plane                      1/1     Running                      0          42s\nkube-system          kindnet-mlpm9                                1/1     Running                      0          29s\nkube-system          kindnet-tlvj7                                1/1     Running                      0          13s\nkube-system          kindnet-xm9ss                                0/1     CreateContainerConfigError   0          13s\nkube-system          kube-apiserver-kind-control-plane            1/1     Running                      0          42s\nkube-system          kube-controller-manager-kind-control-plane   1/1     Running                      0          42s\nkube-system          kube-proxy-9sgkt                             1/1     Running                      0          13s\nkube-system          kube-proxy-wsscn                             0/1     ContainerCreating            0          13s\nkube-system          kube-proxy-wxwv4                             1/1     Running                      0          29s\nkube-system          kube-scheduler-kind-control-plane            1/1     Running                      0          42s\nlocal-path-storage   local-path-provisioner-684f458cdd-kk8zm      1/1     Running                      0          29s\n[root@dandev configs]#\n[root@dandev configs]#\n[root@dandev configs]# kubectl get pods --all-namespaces\nNAMESPACE            NAME                                         READY   STATUS    RESTARTS   AGE\nkube-system          coredns-c676cc86f-pbsr8                      1/1     Running   0          35s\nkube-system          coredns-c676cc86f-qsnlh                      1/1     Running   0          35s\nkube-system          etcd-kind-control-plane                      1/1     Running   0          48s\nkube-system          kindnet-mlpm9                                1/1     Running   0          35s\nkube-system          kindnet-tlvj7                                1/1     Running   0          19s\nkube-system          kindnet-xm9ss                                1/1     Running   0          19s\nkube-system          kube-apiserver-kind-control-plane            1/1     Running   0          48s\nkube-system          kube-controller-manager-kind-control-plane   1/1     Running   0          48s\nkube-system          kube-proxy-9sgkt                             1/1     Running   0          19s\nkube-system          kube-proxy-wsscn                             1/1     Running   0          19s\nkube-system          kube-proxy-wxwv4                             1/1     Running   0          35s\nkube-system          kube-scheduler-kind-control-plane            1/1     Running   0          48s\nlocal-path-storage   local-path-provisioner-684f458cdd-kk8zm      1/1     Running   0          35s\n[root@dandev configs]# docker container ls\nCONTAINER ID   IMAGE                  COMMAND                  CREATED              STATUS              PORTS                                                                                         NAMES\n7bbdc8301efb   kindest/node:v1.25.3   \"/usr/local/bin/entr…\"   About a minute ago   Up About a minute                                                                                                 kind-worker2\n0b3dff6cc53a   kindest/node:v1.25.3   \"/usr/local/bin/entr…\"   About a minute ago   Up About a minute   0.0.0.0:80-\u003e80/tcp, 0.0.0.0:443-\u003e443/tcp, 0.0.0.0:3737-\u003e3737/tcp, 127.0.0.1:42997-\u003e6443/tcp   kind-control-plane\n0d3faeff5020   kindest/node:v1.25.3   \"/usr/local/bin/entr…\"   About a minute ago   Up About a minute                                                                                                 kind-worker\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-and-dna%2Fops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan-and-dna%2Fops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-and-dna%2Fops/lists"}