diff --git a/deployment_scripts/concourse_cd/data_source_api.yaml b/deployment_scripts/concourse_cd/data_source_api.yaml index 3c11b67..3a74e95 100644 --- a/deployment_scripts/concourse_cd/data_source_api.yaml +++ b/deployment_scripts/concourse_cd/data_source_api.yaml @@ -43,42 +43,10 @@ jobs: config: run: path: cp - args: ["deployment_scripts/k8s/config", "/tmp/"] + args: ["../k8s/config", "/tmp/"] - put: k8s params: context: minikube - kubeconfig: | - apiVersion: v1 - clusters: - - cluster: - certificate-authority: /home/exouser/.minikube/ca.crt - extensions: - - extension: - last-update: Tue, 05 Apr 2022 19:36:51 UTC - provider: minikube.sigs.k8s.io - version: v1.25.2 - name: cluster_info - server: https://192.168.49.2:8443 - name: minikube - contexts: - - context: - cluster: minikube - extensions: - - extension: - last-update: Tue, 05 Apr 2022 19:36:51 UTC - provider: minikube.sigs.k8s.io - version: v1.25.2 - name: context_info - namespace: default - user: minikube - name: minikube - current-context: minikube - kind: Config - preferences: {} - users: - - name: minikube - user: - client-certificate: /home/exouser/.minikube/profiles/minikube/client.crt - client-key: /home/exouser/.minikube/profiles/minikube/client.key + kubeconfig_file: /tmp/config kubectl: delete pods -l app=datasource wait_until_ready: 300 diff --git a/deployment_scripts/k8s/config b/deployment_scripts/k8s/config new file mode 100644 index 0000000..c2eb78d --- /dev/null +++ b/deployment_scripts/k8s/config @@ -0,0 +1,32 @@ +apiVersion: v1 +clusters: +- cluster: + certificate-authority: /home/exouser/.minikube/ca.crt + extensions: + - extension: + last-update: Tue, 05 Apr 2022 19:36:51 UTC + provider: minikube.sigs.k8s.io + version: v1.25.2 + name: cluster_info + server: https://192.168.49.2:8443 + name: minikube +contexts: +- context: + cluster: minikube + extensions: + - extension: + last-update: Tue, 05 Apr 2022 19:36:51 UTC + provider: minikube.sigs.k8s.io + version: v1.25.2 + name: context_info + namespace: default + user: minikube + name: minikube +current-context: minikube +kind: Config +preferences: {} +users: +- name: minikube + user: + client-certificate: /home/exouser/.minikube/profiles/minikube/client.crt + client-key: /home/exouser/.minikube/profiles/minikube/client.key