https://github.com/kvendingoldo/spring-k8scm
https://github.com/kvendingoldo/spring-k8scm
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kvendingoldo/spring-k8scm
- Owner: kvendingoldo
- Created: 2022-03-12T21:42:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T00:07:31.000Z (over 1 year ago)
- Last Synced: 2025-02-27T04:46:26.640Z (4 months ago)
- Language: Java
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# spring-k8scm
### How to use it
1. Build `echo` application
```shell
mvn install -P
docker tag localhost/echo/app:000
docker push
```2. Deploy K8S namespace:
```shell
kubectl apply -f ~/spring-k8scm/echo-service/src/k8s/namespace.yaml
```
3. Fix config file `kubectl apply -f ~/spring-k8scm/echo-service/src/main/resources/example/namespace.yaml`. Pay attention to `imagePullSecrets` and `image: `4. Deploy K8S resources:
```shell
kubectl apply -f ~/spring-k8scm/echo-service/src/k8s/service.yaml
```