Moonglade

Modern Markdown blogging with AI-powered localization and search.


GitLab Deployment and DingTalk Integration

This article provides a detailed walkthrough of the complete process for deploying GitLab using Docker and deeply integrating it with DingTalk. First, the article demonstrates how to start the GitLab container using Docker commands, with a focus on the port mapping strategy: mapping port 80 directly to accommodate DingTalk's SSO login redirect behavior, which ignores ports; mapping the SSH port to 7003 and providing a corresponding client configuration example; and configuring persistent storage for configuration files, logs, and data directories. Second, the article explains in depth how to configure DingTalk as an Identity Provider (IdP) to implement Single Sign-On (SSO). This includes creating an application on the DingTalk Open Platform, obtaining the AppKey and AppSecret, configuring the callback domain, and enabling OmniAuth in GitLab's `gitlab.rb` file while entering the DingTalk credentials. Additionally, the article demonstrates in detail the configuration and verification of GitLab's SMTP email service to ensure that the email binding notification feature works correctly when users log in for the first time. Finally, the article introduces how to use DingTalk group robots as Webhook receivers to synchronize GitLab events, such as pushes and merge requests, to DingTalk group chats in real time, thereby enabling automated notifications for development collaboration information.

Views 129
DingTalk SSO devops docker gitlab k8s sso

Setting up MinIO with k8s and a Quick Introduction to Its Usage

This document provides a detailed walkthrough of the complete process for deploying MinIO object storage in a local environment using Kubernetes. It begins by introducing installation methods for two lightweight K8s distributions: first, installing Minikube via binary or apt packages, configuring the Docker driver and image mirrors, and demonstrating basic operations such as creating an application, exposing a NodePort service, and port forwarding; second, installing MicroK8s using the Snap package manager, including user permission configuration, adding cluster nodes, enabling the Dashboard plugin, and generating an access token to manage the cluster via a browser. Subsequently, the document focuses on how to deploy a MinIO development environment using the `kubectl apply` command, covering checking Pod and service status, describing resource details, tracking logs, and using port-forward to forward the Web interface (9090) and console (9000) ports. It also notes that the initial account credentials need to be extracted from the logs. Finally, the article provides a Go language code example for client testing, aiming to help developers quickly set up and verify the availability of the MinIO service in a K8s environment, laying the foundation for subsequent project integration.

Views 144
Kubernetes devops docker k8s microK8s minio