-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crossplane with k3d; install grafana and temporal
- Loading branch information
1 parent
2d18450
commit 12a3d2a
Showing
17 changed files
with
300 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: "3.8" | ||
services: | ||
registry.k3d.localhost: | ||
container_name: registry.k3d.localhost | ||
image: registry:2 | ||
environment: | ||
- REGISTRY_HTTP_ADDR=0.0.0.0:5000 | ||
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/self-signed-ca.crt | ||
- REGISTRY_HTTP_TLS_KEY=/certs/self-signed-ca.key | ||
volumes: | ||
- ./registry/certs:/certs | ||
- registry-data:/var/lib/registry | ||
ports: | ||
- 5000:5000 | ||
|
||
volumes: | ||
registry-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: pkg.crossplane.io/v1beta1 | ||
kind: DeploymentRuntimeConfig | ||
metadata: | ||
name: debug-config | ||
spec: | ||
deploymentTemplate: | ||
spec: | ||
selector: {} | ||
template: | ||
spec: | ||
containers: | ||
- name: package-runtime | ||
args: | ||
- --debug | ||
--- | ||
apiVersion: pkg.crossplane.io/v1 | ||
kind: Provider | ||
metadata: | ||
name: provider-temporal | ||
spec: | ||
package: registry.k3d.localhost:5000/provider-temporal:v13.0.0 | ||
packagePullPolicy: IfNotPresent | ||
revisionActivationPolicy: Automatic | ||
runtimeConfigRef: | ||
name: debug-config |
11 changes: 11 additions & 0 deletions
11
k8s/crossplane/temporal/02-temporal-provider-config-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: provider-temporal-config-creds | ||
namespace: crossplane-system | ||
type: Opaque | ||
stringData: | ||
credentials: | | ||
{ | ||
"HostPort": "temporaltest-frontend.default:7233" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: temporal.crossplane.io/v1alpha1 | ||
kind: ProviderConfig | ||
metadata: | ||
name: local-temporal-instance-config | ||
spec: | ||
credentials: | ||
source: Secret | ||
secretRef: | ||
namespace: crossplane-system | ||
name: provider-temporal-config-creds | ||
key: credentials |
11 changes: 11 additions & 0 deletions
11
k8s/crossplane/temporal/04-temporal-namespace-resources.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: core.temporal.crossplane.io/v1alpha1 | ||
kind: TemporalNamespace | ||
metadata: | ||
name: ns1 | ||
spec: | ||
forProvider: | ||
name: "Test 1" | ||
description: "Test Desc 1" | ||
ownerEmail: "[email protected]" | ||
providerConfigRef: | ||
name: local-temporal-instance-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ubuntu:22.04 | ||
|
||
COPY ./certs/ /certs | ||
|
||
RUN apt-get update && apt-get -y install curl ca-certificates | ||
|
||
RUN curl -sL "https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh" | sh | ||
|
||
RUN mv crossplane /usr/bin/crossplane | ||
|
||
RUN cp /certs/self-signed-ca.crt /usr/local/share/ca-certificates/self-signed-ca.crt | ||
|
||
RUN update-ca-certificates | ||
|
||
CMD tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
openssl genrsa -out self-signed-ca.key 2048 | ||
|
||
openssl req -new -subj "/C=DE/ST=/L=/O=Security/OU=IT/CN=k3d-registry.localhost" -key self-signed-ca.key -out self-signed-ca.csr | ||
|
||
openssl x509 -req -in self-signed-ca.csr -signkey self-signed-ca.key -out self-signed-ca.crt -days 3650 -sha256 -extfile v3.ext | ||
|
||
rm self-signed-ca.csr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIEMDCCAxigAwIBAgIUEN+RefLDzC7vJA7BNYVJiqv0oVcwDQYJKoZIhvcNAQEL | ||
BQAwTjELMAkGA1UEBhMCREUxETAPBgNVBAoMCFNlY3VyaXR5MQswCQYDVQQLDAJJ | ||
VDEfMB0GA1UEAwwWazNkLXJlZ2lzdHJ5LmxvY2FsaG9zdDAeFw0yMzEyMDkyMzQw | ||
NTlaFw0zMzEyMDYyMzQwNTlaME4xCzAJBgNVBAYTAkRFM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ZA944Q4xSrDubjZPkQJiDst3LP9rX7wd3 | ||
wkxljT2oPgLgeOUDK2ovkIYnEZ9Oar5760ffqugWY8loOZ94sPqgUW/Jtj3zBoBx | ||
KS98xjOlNUaEBO+YnAMW8Ga6cn145Oor9jzkmIvsHstXUDLhIRdaZTxDnYcD14a1 | ||
/C+M+ASnnjYTxZYAsTsFZmnDqbs= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpQIBAAKCAQEAs61JrX0BKHXt0O01ZmLQiD6+EEH6NpF98sE/ZEZmqIj7kGpB | ||
8JDOtheQdNH09Gjfg3ugo3lsy1/LZxGjhm7hWs/on5Wc4txY5ikWfAqsbg9YGirV | ||
VrXnC3ccZybyk7pct4Tk1GXSb85pC88t+oHroiYrLH6kaaBOtV3yVUu3c/6Ejw4S | ||
KQIL/otPK23/W/wud8fHeH5j59uj2/uJ9gRjL21d115IcH3M436x0mrntmTBqV7H | ||
SRrmoONRuYMG6ObQqbPb0IjGJw2ZhJbfre4NxS96kvcmfPY7St3HQ5/eKoIZzXRy | ||
AqX8RjUK1a1O9qt2g9uCpiJER75W9fGjOIg0FQIDAQABAoIBAELvBQlqDepitCsm | ||
ksQHf6Ohq/Amg+2cGY07TEAwscGK9hwAWXwilb7j3F6IcHY0Mz+p6Fe9vjetAfrt | ||
aTuFRtIrrX71nzIr37ouCEBBQabmdG2bE0pwDRgKUTxkF+3MeQmsqgotvE0GWb+a | ||
eIhfqcYH7gFvVBQ9MdUCoGoCAN9mirWh9YN5Z4lD7wIce/iaCYjt3oFjJqEiZAaS | ||
9n2+QHK/fCSC8ohROereJfxWW6R/GWjhZXv8SbT40uylwIJ/Hc6fHNEApyotzlC5 | ||
Q2nUGGn3NBCxOYY0Mxsh7xTzwKuOF5h94CGNyRjMmXXeEYew84o8ra1z+igbK9hQ | ||
1FuF8CkCgYEA7DXTKoVT+qZ9Y8UEI6uwxHVJalWD/cLVAGXODoZNJaSKArlQbGVd | ||
OR9jkLtLyxkLfJZRWEEWdHXVGFbqfYVYaPqJfwqwoUjDqYWRhiD9ygujSZht5kn/ | ||
xK6v78sWTMG0uia7UoRajg0LNuhWGNLHmI2wT3krNhcKFLs9CzAUp2sCgYEAwrrz | ||
W9lLbYcpfolAq0u8XZWdjfH9/Ca8IqTkV9cZDMCOGN5Epba9e+udoFyYxKFDOsxu | ||
x6nmOqoIaobut7vEQb/ZZaSBTImt518N3OJRp2xK1/SWcItnG9+CBPLrMdQFm3of | ||
RN7j/e9zlQdJlhZxOTepIpXzzxX+T1IqYleS8n8CgYEAlZyKAbatOGdXqGfTdVx7 | ||
/BNlysobbhGHpFbXKu/50UvkdlE2FVImt9Wf1L4tBZj5Y5I6N7ISLPWtYVs77wEU | ||
vHljuWnl8mIKPEdzowcmeGDirey0P1bDf6o9mZ6Co19Vv0pk/6EBUlQEtGR4lAR9 | ||
k6y67buLmRkCs5rc0UdE7b0CgYEAqEec5MPcbhN+5U3BKAa0Cn+v/ymf3pauwJWU | ||
iuBkUmPYqF70HezUxNExj5JVpp7hlV9zYHJPdmTYDw76HqdSC6u6OB84aacVNLwt | ||
I7Qk8jUgXI2OsEWX3juBhbtTSuU5z0ly2jZv+lNCpAf/LIfKYrLaI/xIDK6p7WxJ | ||
GmEpqQsCgYEA3HUrT+BGVdpuXrwF5lhQWL+rot82gtK+SDG+HqX/mlCLw2qPlrV3 | ||
hKDyUeeWv+FqMwm/jRWqYHaVsd5RGHmcToSkAB6Fd32E1zamRoUNQUg9nYElXfZP | ||
BLjB5P8WEY2BijaT/gKQlwLOEbHl2Isn+mfI1+QZzKtfwL3D2ERTrtA= | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
subjectKeyIdentifier = hash | ||
authorityKeyIdentifier = keyid:always,issuer:always | ||
basicConstraints = CA:TRUE | ||
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, keyCertSign | ||
subjectAltName = DNS:*.k3d.localhost, DNS:host.k3d.internal | ||
issuerAltName = issuer:copy |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
mirrors: | ||
"registry.k3d.localhost:5000": | ||
endpoint: | ||
- https://registry.k3d.localhost:5000 | ||
|
||
configs: | ||
"registry.k3d.localhost:5000": | ||
tls: | ||
ca_file: "/etc/ssl/certs/self-signed-ca.crt" |