From f68ef7afe2a09cb1eb1c621abcda69b5c925e1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDanny-de-bree=E2=80=9D?= Date: Fri, 12 Jan 2024 10:37:39 +0100 Subject: [PATCH] done --- Dockerfile | 8 +++++ requirements.txt | 74 ++++++++++++++++++++++++++++++++++++++++++++ service-account.yaml | 30 ++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 requirements.txt create mode 100644 service-account.yaml diff --git a/Dockerfile b/Dockerfile index e69de29..9db44ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.11 + +WORKDIR /opt/app + +COPY requirements.txt /opt/app +RUN pip3 install -r requirements.txt + +COPY . /opt/app \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..afb4db4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,74 @@ +absl-py==2.0.0 +aiohttp==3.9.1 +aiosignal==1.3.1 +annotated-types==0.6.0 +anyio==3.7.1 +astunparse==1.6.3 +attrs==23.1.0 +azure-core==1.29.5 +azure-data-tables==12.4.4 +azure-storage-blob==12.19.0 +azure-storage-queue==12.8.0 +cachetools==5.3.2 +certifi==2023.7.22 +cffi==1.16.0 +charset-normalizer==3.3.0 +click==8.1.7 +cryptography==41.0.5 +fastapi==0.104.1 +flatbuffers==23.5.26 +frozenlist==1.4.0 +gast==0.5.4 +google-auth==2.24.0 +google-auth-oauthlib==1.2.0 +google-pasta==0.2.0 +grpcio==1.60.0 +h11==0.14.0 +h5py==3.10.0 +httpcore==1.0.2 +httpx==0.25.1 +idna==3.4 +iso8601==2.1.0 +isodate==0.6.1 +jsonpatch==1.33 +jsonpointer==2.4 +keras==2.15.0 +kopf==1.36.2 +kubernetes==28.1.0 +libclang==16.0.6 +Markdown==3.5.1 +MarkupSafe==2.1.3 +ml-dtypes==0.2.0 +multidict==6.0.4 +numpy==1.26.1 +oauthlib==3.2.2 +opt-einsum==3.3.0 +packaging==23.2 +pandas==2.1.1 +protobuf==4.23.4 +psycopg2==2.9.9 +pyasn1==0.5.1 +pyasn1-modules==0.3.0 +pycparser==2.21 +pydantic==2.4.2 +pydantic_core==2.10.1 +python-dateutil==2.8.2 +python-json-logger==2.0.7 +python-multipart==0.0.6 +pytz==2023.3.post1 +requests==2.31.0 +requests-oauthlib==1.3.1 +rsa==4.9 +six==1.16.0 +sniffio==1.3.0 +starlette==0.27.0 +tensorboard==2.15.1 +termcolor==2.4.0 +typing_extensions==4.8.0 +tzdata==2023.3 +urllib3==1.26.18 +uvicorn==0.23.2 +websocket-client==1.7.0 +Werkzeug==3.0.1 +wrapt==1.14.1 +yarl==1.9.2 \ No newline at end of file diff --git a/service-account.yaml b/service-account.yaml new file mode 100644 index 0000000..905e66d --- /dev/null +++ b/service-account.yaml @@ -0,0 +1,30 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: k8s-operator + namespace: poc + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + namespace: poc + name: k8s-operator +rules: +- apiGroups: [""] + resources: ["pods"] + verbs: ["get", "watch", "list"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: read-pods + namespace: poc +subjects: +- kind: ServiceAccount + name: k8s-operator + namespace: poc +roleRef: + kind: Role + name: k8s-operator + apiGroup: rbac.authorization.k8s.io \ No newline at end of file