一个计算机技术爱好者与学习者

0%

需求

已知app表有两个字段:id和name,build_history表有四个字段:id、app_id、image_path和create_time。
app构建后会生成镜像,镜像地址存在于build_history表中的image_path字段。

现在想要查找出每个app的最新的五个镜像,该怎样实现?

阅读全文 »

PostgreSQL简介

PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.

本文中,我们会学习PostgreSQL的安装和使用方法。

参考文档:

阅读全文 »

Harbor简介

Harbor is an open source container image registry that secures images with role-based access control, scans images for vulnerabilities, and signs images as trusted. As a CNCF Incubating project, Harbor delivers compliance, performance, and interoperability to help you consistently and securely manage images across cloud native compute platforms like Kubernetes and Docker.

更多内容参考Harbor官网

阅读全文 »

JSONPath简介

JSON (JavaScript Object Notation) allows for easy interchange of data, often between a program and a database.

JSONPath is a query language for JSON, similar to XPath for XML.

如上,json是一种常用的数据格式,jsonpath是json的查询语言,类似于XPath和SQL。

jsonpath在线测试:JSONPath Online Evaluator

阅读全文 »

前言

搭建K8S集群时,我们往往使用同一个云厂商的机器,或者自建机房,能够保证宿主机的二层网络是通的。基于这种网络环境搭建K8S集群,简单而稳定。
但是某些情况下,我们需要跨云(使用不同云厂商的机器)搭建K8S集群,这时候就需要充分考虑网络问题。
本文,我们就来学习一下跨云搭建K8S集群的方法。

阅读全文 »