🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Knative: Example of Knative Service Example with all the options available

The metadata section includes the name and namespace of the service, as well as annotations that specify the creator of the service and its visibility.

The spec section includes the template for the service, which specifies the container image, environment variables, liveness and readiness probes, resources, and volume mounts.

The traffic section specifies the traffic configuration for the service, including the latest revision and two revisions with equal traffic splitting.

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: example
namespace: my-namespace
annotations:
serving.knative.dev/creator: "myuser"
serving.knative.dev/visibility: cluster-local
spec:
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
spec:
serviceAccountName: my-service-account
containers:
- name: example-container
image: gcr.io/knative-samples/helloworld-go
ports:
- name: http1
containerPort: 8080
protocol: TCP
env:
- name: TARGET
value: "Knative"
livenessProbe:
httpGet:
path: /healthz
port: 8080
readinessProbe:
tcpSocket:
port: 8080
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 250m
memory: 256Mi
volumeMounts:
- name: my-volume
mountPath: /mnt/data
volumes:
- name: my-volume
configMap:
name: my-configmap
traffic:
latestRevision: true
percent: 100
revisions:
- name: example-00001
percent: 50
tag: "example-00001"
- name: example-00002
percent: 50
tag: "example-00002"
Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x