Skip to main content

Automatically apply changes from a remote URL to the Kubernetes cluster

Usage

To start the service locally, run

$ pip3 install --user autoapply
$ autoapply server https://user:password@example.com/repository/my-service.yaml

For a docker version, use

$ docker run -d -e URL=https://example.com/my-service.yaml pascalgn/autoapply

The following URLs are supported:

  • Direct access via HTTPS, for example https://example.com/my-config/config.yaml

  • Access via SSH, git@example.com:path/to/repository.git:path/to/config.yaml or ssh://git@example.com:123/path/to/repository.git:path/to/config.yaml

For Git URLs you can append #my-branch to specify the branch to be used. If no branch is given, master will be used.

Providing SSH keys

To use SSH keys, be sure to specify 600 as default mode when mounting them. For Kubernetes, this would look like this:

containers:
  - name: autoapply-container
    image: pascalgn/autoapply
    env:
      - name: URL
        value: 'git@github.com:pascalgn/hostinfo.git:examples/kubernetes.yaml'
    volumeMounts:
      - name: autoapply-ssh-secret-volume
        mountPath: /home/autoapply/.ssh
volumes:
  - name: autoapply-ssh-secret-volume
    secret:
      secretName: autoapply-ssh-secret-volume
      defaultMode: 256

Encrypted files

You can encrypt the values of Yaml files to protect Kubernetes secrets like SQL database or Docker registry credentials:

$ autoapply crypt -f application-secrets.yaml
Password: my-secret-passphrase

This will delete the original file and create a file application-secrets.yaml.crypt, which can later be decrypted by autoapply when providing the password for the server:

$ mkdir ~/.autoapply
$ echo -n my-secret-passphrase > ~/.autoapply/crypt.key
$ autoapply server https://example.com/repository/application-secrets.yaml

License

Autoapply is licensed under the ISC License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoapply-0.3.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoapply-0.3.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file autoapply-0.3.1.tar.gz.

File metadata

  • Download URL: autoapply-0.3.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for autoapply-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8b25f1ee6df887fab12b292716cd05c82d43dca6f0bcde08f3603109f75c8241
MD5 16a4a477db37ba60e2c2e06b55d5fc49
BLAKE2b-256 cb0fcaa794cb453e74f3826be116e65186c4b60ec45d6590fb8db4937f6e95a7

See more details on using hashes here.

File details

Details for the file autoapply-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for autoapply-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83f867a1e0a19d4056af52af085a2695ac24b2c529869474e7dd9826db72df2d
MD5 2d9b2248af44cb0e42424489f7a966b1
BLAKE2b-256 6e2bf70c8bf03f686a9522a271a5879861e85092544510b84328f543cdb01137

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2

2 files

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page