# API Server

Api Server adresinizi görmek için aşğıdaki komutu kullanabilirsiniz.

```
oc config view --output jsonpath='{.clusters[*].cluster.server}'
https://api.openshift.firmaismi.net:6443
```

Başarılı bir OpenShift kurulumu yaptıktan sona aynı kubernetes cluster gibi config file görmek için basiton makineniz üzerinden /home/your\_username/.kube/config bilgisien ulaşmak içinaşğıdaki komutu kullnabilirsiniz. Yapnıza göre daha büyük bir lsite gelebilir bilginize.&#x20;

```
oc config view
apiVersion: v1
clusters:
- cluster:
    server: https://api.openshift.firmaismi.net:6443
contexts:
- context:
    cluster: api-openshift-firmaismi-net:6443
    namespace: default
    user: cahit.yolacan/api-openshift-firmaismi-net:6443
  name: default/api-openshift-firmaismi-net:6443/cahit.yolacan
current-context: default/api-openshift-firmaismi-net:6443/cahit.yolacan
kind: Config
preferences: {}
users:
- name: cahit.yolacan
  user:
    token: sha256~83miYt8vIEHeP6CDaTKRy2SUruoo-TuVxdYToGQQOqo
```

Api Serverinizi kaç zamandır ayakta kontol etmek için

```
oc get apiserver
NAME      AGE
cluster   333d
```

**oc describe apiserver cluster** komutu ile detaylı bir ienleme yapalım mı&#x20;

```
oc describe apiserver cluster
Name:         cluster
Namespace:
Labels:       <none>
Annotations:  include.release.openshift.io/ibm-cloud-managed: true
              include.release.openshift.io/self-managed-high-availability: true
              include.release.openshift.io/single-node-developer: true
              oauth-apiserver.openshift.io/secure-token-storage: true
              release.openshift.io/create-only: true
API Version:  config.openshift.io/v1
Kind:         APIServer
Metadata:
  Creation Timestamp:  2023-10-05T12:22:59Z
  Generation:          1
  Owner References:
    API Version:     config.openshift.io/v1
    Kind:            ClusterVersion
    Name:            version
    UID:             0ee6f223-8ac2-4a9f-b171-1dbfc6681884
  Resource Version:  897
  UID:               4bcd9365-66f1-4295-a9b3-7cadf360609b
Spec:
  Audit:
    Profile:  Default
Events:       <none>

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ocp.1w2.net/openshift-gui-ve-cli-ile-yonetimi/api-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
