From cd3ea54baff780c41b747361dec98492262902d3 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 5 Aug 2022 16:55:06 +0200 Subject: [PATCH] Add k8s config --- dot_kube/config-njj.yml | 73 +++++++++++++++++++++++++++++++++++++++++ dot_kube/mt-bundle.pem | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 dot_kube/config-njj.yml create mode 100644 dot_kube/mt-bundle.pem diff --git a/dot_kube/config-njj.yml b/dot_kube/config-njj.yml new file mode 100644 index 0000000..d981ba6 --- /dev/null +++ b/dot_kube/config-njj.yml @@ -0,0 +1,73 @@ +apiVersion: v1 +clusters: +- cluster: + server: https://k8s-api.prod.lan:8443 + name: NJJ-K8S +- cluster: + certificate-authority: mt-bundle.pem + server: https://k8sv3-api.steelhome.internal:8443 + name: NJJ-K8SV3-PRD +- cluster: + certificate-authority: mt-bundle.pem + server: https://k8sv3stg-api.steelhome.internal:8443 + name: NJJ-K8SV3-STG +contexts: +- context: + cluster: NJJ-K8SV3-PRD + namespace: itsf-prd-mailmonitoring-netsf + user: prd + name: prd +- context: + cluster: NJJ-K8SV3-STG + namespace: itsf-stg-netup-netsf + user: stg + name: stg +- context: + cluster: NJJ-K8S + namespace: itsf-prd-netup-netsf + user: v2 + name: v2 +current-context: v2 +kind: Config +preferences: {} +users: +- name: prd + user: + exec: + apiVersion: client.authentication.k8s.io/v1beta1 + args: + - get-token + - --listen-address=127.0.0.1:18000 + - --oidc-issuer-url=https://iam.steelhome.internal/auth/realms/steelhome + - --oidc-client-id=mtMC-K8S-prd + command: /usr/local/bin/kubelogin + env: null + interactiveMode: IfAvailable + provideClusterInfo: false +- name: stg + user: + exec: + apiVersion: client.authentication.k8s.io/v1beta1 + args: + - get-token + - --listen-address=127.0.0.1:18000 + - --oidc-issuer-url=https://iam.steelhome.internal/auth/realms/steelhome + - --oidc-client-id=mtMC-K8S-prd + command: /usr/local/bin/kubelogin + env: null + interactiveMode: IfAvailable + provideClusterInfo: false +- name: v2 + user: + exec: + apiVersion: client.authentication.k8s.io/v1beta1 + args: + - get-token + - --listen-address=127.0.0.1:18000 + - --oidc-issuer-url=https://iam.monaco-telecom.mc/auth/realms/APP-NJJ-K8S + - --oidc-client-id=NJJ-K8S + - --oidc-client-secret=9cf88050-429d-4790-a7b6-0fce26d93b9e + command: /usr/local/bin/kubelogin + env: null + interactiveMode: IfAvailable + provideClusterInfo: false diff --git a/dot_kube/mt-bundle.pem b/dot_kube/mt-bundle.pem new file mode 100644 index 0000000..98dac84 --- /dev/null +++ b/dot_kube/mt-bundle.pem @@ -0,0 +1,66 @@ +-----BEGIN CERTIFICATE----- +MIIFajCCA1KgAwIBAgIBATANBgkqhkiG9w0BAQsFADBGMRcwFQYDVQQKDA5Nb25h +Y28gVGVsZWNvbTErMCkGA1UEAwwiR3JvdXAgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1 +dGhvcml0eTAeFw0yMTAzMzExMTI5MzhaFw00MTA0MDExMjAwMDBaMEYxFzAVBgNV +BAoMDk1vbmFjbyBUZWxlY29tMSswKQYDVQQDDCJHcm91cCBSb290IENlcnRpZmlj +YXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA +1E6PMWwdxW+1bHu+FwpQRItN3AqVGPitzttBX99/uDkf7qAp9R8O200H4DG+EupF +bi/BQFBygrM0sW97Keh5I4g6E96TK1moR+JRDXXYdoFbczUxdL+OEc2Cyz2SnRed +JSdpgpe+VoimFDpB8ovzCky6B8JGdk8zKVff9mYTnOhmC7N7wzw5YOqp3ASVUkT7 +QotSb2h+zXCmXOv+iNbwRm6GRd2l0rTuoSqp3fDxu2QJiQnVPYABoINM8iZHVPHv +5uuU+kzjHwzc5DvWr80P/WcGpD37f81CbF9RuBo5sgGAqwylSi+Kg0aEv1ElefFP +TAFfIgZG+wqMeKCuqSqER2vOEeOvE/BgLjkjanmxvzyr61gvwbZowyPSQGEpbyoQ +SEDeIC4M4r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