<commit_before># Kubernetes upstream for SSHPiper

Kubernetes api is called to retreive sshpiper configuration.

## Usage

First install CRD

```
$ kubectl apply -f https://raw.githubusercontent.com/pockost/sshpipe-k8s-lib/v0.0.3/artifacts/sshpipe.yaml
```

You can now add a new sshpipe object

```
apiVersion: pockost.com/v1beta1
kind: SshPipe
metadata:
  name: sftp2
spec:
  users:
    - user2
  target:
    name: sftp2
```

You can find more example in [the example folder](sshpiperd/kubernetes/example)

## ssh host key

If the `/etc/ssh/ssh_host_rsa_key` does not exist at startup the
sshpiper container generate one. This mean each time the `sshpiper` pod
is recreated a new `ssh_host_rsa_key` will be generated.

To prevent this you can generate a new `ssh_host_rsa_key` and store this
one in a Secret object.
<commit_msg>fix kubernetes example wrong link in readme (#81)<commit_after># Kubernetes upstream for SSHPiper

Kubernetes api is called to retreive sshpiper configuration.

## Usage

First install CRD

```
$ kubectl apply -f https://raw.githubusercontent.com/pockost/sshpipe-k8s-lib/v0.0.3/artifacts/sshpipe.yaml
```

You can now add a new sshpipe object

```
apiVersion: pockost.com/v1beta1
kind: SshPipe
metadata:
  name: sftp2
spec:
  users:
    - user2
  target:
    name: sftp2
```

You can find more example in [the example folder](example)

## ssh host key

If the `/etc/ssh/ssh_host_rsa_key` does not exist at startup the
sshpiper container generate one. This mean each time the `sshpiper` pod
is recreated a new `ssh_host_rsa_key` will be generated.

To prevent this you can generate a new `ssh_host_rsa_key` and store this
one in a Secret object.

{'fraction_non_alphanumeric': 0.08298507462686568, 'fraction_numerical': 0.011940298507462687, 'mean_word_length': 4.204968944099379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1872352', 'n_tokens_mistral': 621, 'n_tokens_neox': 566, 'n_words': 205}