diff --git a/README.md b/README.md index bcf9ef4..5c8f4bd 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,18 @@ ## Responsibility -- Listens Kubernetes events and stores/updates/deletes k8s objects. +- Listens agent generated kube events via api service. +- Stores/Modifies/Deletes objects according to events. + +| Versions | Descriptors | +|----------|-------------| +| [v0.0.1-beta](https://github.com/klovercloud-ci-cd/light-house-command/releases/tag/v0.0.1-beta) | [k8s](k8s/v0.0.1-beta) | -| Versions | -|----------| -| 0.0.1 | ## Want to contribute - See [CONTRIBUTING.md](markdownfiles/CONTRIBUTING.md) - See [DEVELOPMENT.md](markdownfiles/DEVELOPMENT.md) to get start -- See [architecture](https://github.com/klovercloud-ci-cd/architecture) +- See [architecture](https://github.com/klovercloud-ci-cd/architecture/blob/master/README.md) - Look at our [our issues](https://github.com/klovercloud-ci-cd/light-house-command/issues) \ No newline at end of file diff --git a/core/v1/types.go b/core/v1/types.go index ad64dec..6dee579 100644 --- a/core/v1/types.go +++ b/core/v1/types.go @@ -490,7 +490,7 @@ type ObjectMeta struct { DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty" protobuf:"varint,10,opt,name=deletionGracePeriodSeconds" bson:"deletionGracePeriodSeconds"` // Map of string keys and values that can be used to organize and categorize - // (scope and select) objects. May match selectors of replication controllers + // (scope and select) objects. May match selectors of replication service // and services. // More info: http://kubernetes.io/docs/user-guide/labels // +optional @@ -2025,7 +2025,7 @@ type Container struct { // Docker image name. // More info: https://kubernetes.io/docs/concepts/containers/images // This field is optional to allow higher level config management to default or override - // container images in workload controllers like Deployments and StatefulSets. + // container images in workload service like Deployments and StatefulSets. // +optional Image string `json:"image,omitempty" protobuf:"bytes,2,opt,name=image" bson:"image"` // Entrypoint array. Not executed within a shell. diff --git a/k8s/configMap.yml b/k8s/configMap.yml deleted file mode 100644 index 30978e3..0000000 --- a/k8s/configMap.yml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: klovercloud-ci-light-house-command-config - namespace: klovercloud -data: - RUN_MODE: "PRODUCTION" - SERVER_PORT: "8080" - MONGO_SERVER: "${mongo_server}" - MONGO_PORT: "${mongo_port}" - DATABASE: "MONGO" \ No newline at end of file diff --git a/k8s/deployment.yml b/k8s/deployment.yml deleted file mode 100644 index 1680221..0000000 --- a/k8s/deployment.yml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: klovercloud-ci-light-house-command - namespace: klovercloud -spec: - replicas: 1 - selector: - matchLabels: - app: klovercloud-ci-light-house-command - template: - metadata: - labels: - app: klovercloud-ci-light-house-command - spec: - terminationGracePeriodSeconds: 60 - containers: - - name: app - imagePullPolicy: Always - image: quay.io/klovercloud/light-house-command:v0.0.2 - resources: - limits: - cpu: 100m - memory: 256Mi - requests: - cpu: 100m - memory: 256Mi - envFrom: - - configMapRef: - name: klovercloud-ci-light-house-command-config - - secretRef: - name: klovercloud-mongo-secret - ports: - - containerPort: 8080 - readinessProbe: - httpGet: - path: /health - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 3 - livenessProbe: - httpGet: - path: /health - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 3 diff --git a/k8s/service.yml b/k8s/service.yml deleted file mode 100644 index 77de66f..0000000 --- a/k8s/service.yml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: klovercloud-ci-light-house-command - namespace: klovercloud - labels: - app: klovercloud-ci-light-house-command -spec: - ports: - - name: http-rest - port: 80 - targetPort: 8080 - selector: - app: klovercloud-ci-light-house-command \ No newline at end of file