<commit_before>---
layout:     post
title:      K3s常用配置
subtitle:   K3s常用配置
date:       2020-3-18 21:06:00 +0800
author:     Ksd
header-img: img/post-bg-rancher-k8s.png
catalog: true
tags:
    - rancher
    - K3S
    - Kubernetes
---
> 参考：
> [K3S private registry](https://rancher.com/docs/k3s/latest/en/installation/private-registry/#with-tls)



## 说明

## registry 启动tls
本例使用只签名证书启动registry，大概的流程是先创建证书，然后启动registry将生成的证书配置到registry中

#### 生成证书<commit_msg>modify the title<commit_after>---
layout:     post
title:      K3s配置私有registry
subtitle:   使用只签名证书
date:       2020-3-18 21:06:00 +0800
author:     Ksd
header-img: img/post-bg-rancher-k8s.png
catalog: true
tags:
    - rancher
    - K3S
    - Kubernetes
---
> 参考：
> [K3S private registry](https://rancher.com/docs/k3s/latest/en/installation/private-registry/#with-tls)



## 说明

## registry 启动tls
本例使用只签名证书启动registry，大概的流程是先创建证书，然后启动registry将生成的证书配置到registry中

#### 生成证书
{'fraction_non_alphanumeric': 0.133764832793959, 'fraction_numerical': 0.04854368932038835, 'mean_word_length': 3.356807511737089, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3214570', 'n_tokens_mistral': 455, 'n_tokens_neox': 458, 'n_words': 61}