Closed jgwerner closed 3 years ago
@Abhi94N to remove any possibility that there are issues with the Kubernetes Python client, let's test with the Go client that we need anyway from the new illumidesk/grader-setup-service
. This folder has some examples that are similar to the Python client examples.
@Abhi94N closing. This was resolved with illumidesk/illumidesk#602.
Overview
We created a Pull Request for the
grader-setup-service
to ensure the SQL operation is rolled back in case of an exception. However, after building and pushing thegrader-setup-service
from this PR thegrader-setup-service
encounters permissions issues when attempting to connect to other cluster resources.Reproducing the error
grader-setup-service
using imageillumidesk/grader-setup-service:582
.grader-setup-service
usingkubectl logs -f grader-setup-service-<id> -n <namespace>
Summary of tests to date
illumidesk/helm-chart
to remove ClusterRoleBinding typos and duplicateshello world
deploymentgrader-setup-service
using thekubectl exec ...
command:hello world
deployment using the Python Kubernetes client with the following code in atest.py
file (may be located in any directory, such as/tmp
):grader-setup-service
pod above:grader-setup-service
pod. Then, run thehello world
deployment by entering (where test.py represents the file that has the code from step 2 above):Tests to date
To fix the permissions errors (403) mentioned above, the helm-chart was changed to:
ClusterRole
ClusterRole
withRoleBinding
Things that haven't been tested
subject
for theRoleBinding
orClusterRoleBinding
to have something other than a service account as a subject, e.g. a user or group.ClusterRole
to aRole
, etc....others