You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-9Lines changed: 45 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,28 +12,64 @@ The operators in this repository make keptn configurable via Custom Resources an
12
12
* In order to be able to create and delete stages, the keptn operator depends on a patched version of the configuration-service and the shipyard controller
13
13
14
14
## Installation
15
+
The operators and the promotion service, which is used to compose the files in the upstream repository are installed via helm. Following, the steps needed for deploying the operators are described.
16
+
17
+
### Prepare Keys for encryption of secrets
18
+
* Download Secrets helper from [Releases](https://github.com/keptn-sandbox/keptn-gitops-operator/releases)
19
+
* Create a keypair: ` ./keptn-gitops-secrets-(version) generate-keys -f <prefix>`
20
+
* Keep this secrets in a safe place, the public key will be needed for encrypting secrets, the private key to decrypt them on the server-side
21
+
22
+
### Prepare environment variables
23
+
Following, a few parameters have to be set upfront:
24
+
*`API_HOSTNAME` describes the hostname of the keptn/cloud automation instance (e.g. my-hostname.keptn.sh)
25
+
*`API_TOKEN` describes the Token of the keptn/cloud automation instance
26
+
*`RSA_PRIVATE_KEY` represents the private key you created before
27
+
*`GITOPS_VERSION` specifies the Version you want to install (see [Releases](https://github.com/keptn-sandbox/keptn-gitops-operator/releases))
| KeptnInstance | Configure a Keptn Instance |[./samples/instance.yaml](./samples/instance.yaml)|
60
+
| KeptnProject | Configure a Keptn Project |[./samples/project.yaml](./samples/project.yaml)|
61
+
| KeptnService | Configure a Keptn Service |[./samples/service.yaml](./samples/service.yaml)|
62
+
| KeptnSequence | Define a Keptn Sequence to be used in a Stage |[./samples/sequence.yaml](./samples/sequence.yaml)|
63
+
| KeptnStage | Define a Keptn Stage |[./samples/stage.yaml](./samples/stage.yaml)|
64
+
| KeptnServiceDeployment | Specifies the deployed version of a service |[./samples/servicedeployment.yaml](./samples/servicedeployment.yaml)|
30
65
31
66
### Usage:
32
67
* Create an empty upstream repository
68
+
* Create a KeptnInstance Custom Resource according to the [sample](./samples/instance.yaml). You can specify the secret to your secret either in clear text or RSA as an RSA encrypted string (prefix this with rsa:)
33
69
* Create a KeptnProject Custom Resource according to the [sample](./samples/project.yaml). You can specify the secret to your secret either in clear text or RSA as an RSA encrypted string (prefix this with rsa:)
34
70
* Create your keptn services according to the [sample](./samples/service.yaml). Ensure that you added the correct project.
35
71
* Create stages, and sequences. Ensure that you created the sequences you are referring to in the stage custom resources
36
-
* Define a sequence execution to trigger a keptn event
72
+
* Define a service deployment to deploy the service
37
73
38
74
## GitOps Operator
39
75
The operator looks for configuration in a git repository, applies Keptn Custom Resources (see above) and pushes artifacts to the Keptn Upstream Repository.
0 commit comments