mlsuny commited on
Commit
9d8a330
·
verified ·
1 Parent(s): 21e7037

Upload 2 files

Browse files
Files changed (2) hide show
  1. 4.txt +20 -0
  2. download_dataset.ipynb +99 -0
4.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Post Title : Kubernetes Cronjob Error not a native sidecar
2
+ URL: https://stackoverflow.com/questions/75918110/kubernetes-cronjob-error-not-a-native-sidecar
3
+
4
+ QUESTION: I have a kubernetes v1.25 and i cant show the details of my cronjobs anymore on all of my namespace of my kubernetes dashboard.
5
+ FYI, it works in command kubectl line i can list my cronjobs and access.
6
+ Dashboard version used 2.7.0On my project i modified the api version to the one recommended :
7
+ apiVersion: 'batch/v1'
8
+ kind: 'CronJob'When i check the logs of my kubernetes dashboard pod, i can see that every time i try to check the details of my cronjob on a namespace through graphical dashboard, an error log pop "There was an error during transformation to sidecar selector: Resource "cronjob" is not a native sidecar resource type or is not supported".Do you have any idea ?
9
+ Thank you
10
+
11
+ Answer(1): There is a bug where kubernetes dashboard is using API version batchV1beta1 for cronjobs which has been removed in kuberentes version 1.25.I've created a fixed version based on kuberentes dashboard version v2.7.0. I've published it on docker hub:beffe/kubernetes-dashboard:v2.7.0-fix-cj-2You can find the code changes here:https://github.com/kubernetes/dashboard/compare/master...beffe123:kubernetes-dashboard:v2.7.0-fixes
12
+
13
+ Answer(2): There might be two reasons for this issue to occur.Likeglvsaid the primary reason will be version mismatch and the bug
14
+ related to that particular dashboard version. Upgrade your dashboard to
15
+ the latest supported version or follow the steps provided byglv, these
16
+ will help you in resolving the issue.The second issue is related to the permissions. Check whether you have
17
+ provided necessary permissions to the kubernetes dashboard service
18
+ account or RBAC role, assign the necessary permissions if not available
19
+ it will help you in resolving these issues.Go through the logs related to kube-dashboard pods which will provide further details that will help you in diagnosing the issue more clearly. Hope this will help you
20
+
download_dataset.ipynb ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 3,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "import pandas as pd\n",
10
+ "import numpy as np"
11
+ ]
12
+ },
13
+ {
14
+ "cell_type": "code",
15
+ "execution_count": 1,
16
+ "metadata": {},
17
+ "outputs": [],
18
+ "source": [
19
+ "############ YAAHOO QUESTION ANSWER #################\n",
20
+ "\n",
21
+ "df = pd.read_json(\"hf://datasets/baohuynhbk14/yahoo-question-answers-question-answers/yahoo_answers_title_answer.jsonl\", lines=True)\n",
22
+ "\n",
23
+ "test = list( df.data )\n",
24
+ "\n",
25
+ "df = pd.DataFrame( {\n",
26
+ " \"Questions\" : [ test[index][0] for index in range( len( test ) ) ] ,\n",
27
+ " \"Answers\" : [ test[index][1] for index in range( len( test ) ) ]\n",
28
+ "})\n",
29
+ "df.to_csv(\"Question_Ans_Dataset.csv\" ,index = False )"
30
+ ]
31
+ },
32
+ {
33
+ "cell_type": "code",
34
+ "execution_count": 30,
35
+ "metadata": {},
36
+ "outputs": [],
37
+ "source": [
38
+ "######## DATASET LINK : https://huggingface.co/datasets/junaid20/question_answer #############\n",
39
+ "\n",
40
+ "\n",
41
+ "df = pd.read_csv(\"hf://datasets/junaid20/question_answer/dataset.csv\")\n",
42
+ "df.drop( \"text\" , axis = 1 , inplace = True )\n",
43
+ "df.to_csv(\"Question_Ans_Dataset_2.csv\" , index = False)"
44
+ ]
45
+ },
46
+ {
47
+ "cell_type": "code",
48
+ "execution_count": 31,
49
+ "metadata": {},
50
+ "outputs": [],
51
+ "source": [
52
+ "########## DATASET LINK : https://huggingface.co/datasets/toughdata/quora-question-answer-dataset ###########################\n",
53
+ "df = pd.read_json(\"hf://datasets/toughdata/quora-question-answer-dataset/Quora-QuAD.jsonl\", lines=True)\n",
54
+ "df.to_csv(\"Question_Ans_Dataset_3.csv\" , index = False )\n",
55
+ "\n",
56
+ "\n",
57
+ "#### CANNOT DONWLOAD THIS DATASET BECAUSE THIS IS TOOO LARGE #########"
58
+ ]
59
+ },
60
+ {
61
+ "cell_type": "code",
62
+ "execution_count": 12,
63
+ "metadata": {},
64
+ "outputs": [],
65
+ "source": [
66
+ "# ########## DATASET LINK : https://huggingface.co/datasets/formido/outfit_recomendation ##########\n",
67
+ "\n",
68
+ "df = pd.read_csv(\"hf://datasets/formido/outfit_recomendation/new_data.csv\")\n",
69
+ "\n",
70
+ "df[\"instruction\"] = df.instruction + \" \" + df.input\n",
71
+ "\n",
72
+ "df.drop( \"input\" , axis = 1 , inplace = True )\n",
73
+ "\n",
74
+ "df.to_csv(\"Recommendation_Data.csv\" , index = False )"
75
+ ]
76
+ }
77
+ ],
78
+ "metadata": {
79
+ "kernelspec": {
80
+ "display_name": "sunyenv",
81
+ "language": "python",
82
+ "name": "python3"
83
+ },
84
+ "language_info": {
85
+ "codemirror_mode": {
86
+ "name": "ipython",
87
+ "version": 3
88
+ },
89
+ "file_extension": ".py",
90
+ "mimetype": "text/x-python",
91
+ "name": "python",
92
+ "nbconvert_exporter": "python",
93
+ "pygments_lexer": "ipython3",
94
+ "version": "3.10.0"
95
+ }
96
+ },
97
+ "nbformat": 4,
98
+ "nbformat_minor": 2
99
+ }