Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Commit

Permalink
Lab 9: kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
kezzyhko committed Sep 18, 2021
2 parents 67f74f0 + f9cbaa1 commit f3e75b9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
7 changes: 7 additions & 0 deletions k8s/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# K8S readme

Here is the output of `kubectl get pods,svc`:
* with manual command writing
![](output_manual.png)
* with the usage of config files
![](output_config_files.png)
19 changes: 19 additions & 0 deletions k8s/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: time-app-deployment
spec:
replicas: 3
selector:
matchLabels:
app: time-app
template:
metadata:
labels:
app: time-app
spec:
containers:
- name: time-app
image: kezzyhko/devops:latest
ports:
- containerPort: 5000
Binary file added k8s/output_config_files.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added k8s/output_manual.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions k8s/services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: time-app-service
spec:
selector:
app: time-app
type: LoadBalancer
ports:
- protocol: TCP
port: 5000
targetPort: 5000

0 comments on commit f3e75b9

Please sign in to comment.