Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-computing-msc-ai-examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Rieger
cloud-computing-msc-ai-examples
Commits
350d47b1
Commit
350d47b1
authored
Jun 9, 2021
by
Sebastian Rieger
Browse files
Options
Downloads
Patches
Plain Diff
Update 'kubernetes-example/kubectl-intro.md'
parent
56d42ff1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
kubernetes-example/kubectl-intro.md
+5
-3
5 additions, 3 deletions
kubernetes-example/kubectl-intro.md
with
5 additions
and
3 deletions
kubernetes-example/kubectl-intro.md
+
5
−
3
View file @
350d47b1
...
...
@@ -8,7 +8,7 @@ These are two approaches to create the description in Kuberentes:
# create a namespace
kubectl create namespace web-test
# Then choose one way:
# Then choose one
of the following
way
s
:
# (1) Create the description
kubectl create
-f
nginx.yml
-f
service.yml
...
...
@@ -31,7 +31,7 @@ kubectl get -n web-test pods
kubectl get
-n
web-test deployment
# show services for our namespace
kubectl
show
-n
web-test service
kubectl
get
-n
web-test service
# show logs of deployed nginx instances
kubectl logs
-n
web-test deployment/nginx-deployment
...
...
@@ -67,6 +67,7 @@ The nginx instances are reachable at the floating ips of the **node**-instances
### Nginx description
*nginx.yml:*
```
yml
apiVersion
:
apps/v1
kind
:
Deployment
...
...
@@ -93,6 +94,7 @@ spec:
### Nginx service description
*service.yml:*
```
yml
apiVersion
:
v1
kind
:
Service
...
...
@@ -109,5 +111,5 @@ spec:
targetPort
:
80
# Optional field
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
nodePort
:
3000
nodePort
:
3000
7
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment