-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bence Csati <csatib02@gmail.com>
- Loading branch information
Showing
9 changed files
with
159 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v2 | ||
type: application | ||
name: kube-pod-autocomplete | ||
version: 0.0.0 | ||
appVersion: latest | ||
description: backend service designed to enhance the user experience when navigating resource lists in Kubernetes clusters. | ||
sources: | ||
- https://github.com/csatib02/kube-pod-autocomplete | ||
maintainers: | ||
- name: csatib02 |
27 changes: 27 additions & 0 deletions
27
deploy/charts/kube-pod-autocomplete/templates/kube-pod-autocomplete-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Values.name }} | ||
namespace: {{ .Values.namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ .Values.name }} | ||
spec: | ||
replicas: {{ .Values.replicas }} | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: {{ .Values.name }} | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: {{ .Values.name }} | ||
spec: | ||
serviceAccountName: {{ .Values.serviceAccount.name }} | ||
containers: | ||
- name: {{ .Values.name }} | ||
image: {{ .Values.image }} | ||
ports: | ||
- containerPort: {{ .Values.containerPort }} | ||
resources: | ||
limits: | ||
cpu: {{ .Values.resources.limits.cpu }} | ||
memory: {{ .Values.resources.limits.memory }} |
32 changes: 32 additions & 0 deletions
32
deploy/charts/kube-pod-autocomplete/templates/kube-pod-autocomplete-rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Values.serviceAccount.name }} | ||
namespace: {{ .Values.namespace }} | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ .Values.rbac.clusterRoleName }} | ||
namespace: {{ .Values.namespace }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: | ||
{{- toYaml .Values.rbac.resourceTypes | nindent 4 }} | ||
verbs: ["get", "list"] | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ .Values.rbac.clusterRoleBindingName }} | ||
namespace: {{ .Values.namespace }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Values.serviceAccount.name }} | ||
namespace: {{ .Values.namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: {{ .Values.rbac.clusterRoleName }} | ||
apiGroup: rbac.authorization.k8s.io |
13 changes: 13 additions & 0 deletions
13
deploy/charts/kube-pod-autocomplete/templates/kube-pod-autocomplete-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .Values.name }} | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
selector: | ||
app.kubernetes.io/name: {{ .Values.name }} | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- protocol: TCP | ||
port: {{ .Values.servicePort }} | ||
targetPort: {{ .Values.containerPort }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Namespace where the application will be deployed | ||
namespace: kube-pod-autocomplete | ||
|
||
# General settings for the service | ||
name: kube-pod-autocomplete | ||
replicas: 1 | ||
image: csatib02/kube-pod-autocomplete:v0.1.0 | ||
containerPort: 8080 | ||
servicePort: 8080 | ||
|
||
# Service settings | ||
service: | ||
type: ClusterIP | ||
|
||
# Service Account settings | ||
serviceAccount: | ||
name: kube-pod-autocomplete-sa | ||
|
||
# RBAC settings | ||
rbac: | ||
clusterRoleName: kube-pod-autocomplete-clusterrole | ||
resourceTypes: | ||
- "pods" | ||
clusterRoleBindingName: kube-pod-autocomplete-clusterrolebinding | ||
|
||
# Resource limits for the application | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: "512Mi" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.