Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notebooks-operations
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Projekty
notebooks-operations
Commits
cb9abd8b
Commit
cb9abd8b
authored
1 year ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Support for exposing Kubernetes API server - using inventory variables
parent
49500282
Branches
karmada
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cesnet-mcc/inventory/99-all.yaml
+20
-0
20 additions, 0 deletions
cesnet-mcc/inventory/99-all.yaml
with
20 additions
and
0 deletions
cesnet-mcc/inventory/99-all.yaml
+
20
−
0
View file @
cb9abd8b
...
...
@@ -15,3 +15,23 @@ all:
gateway_hostname
:
gateway-cesnet.eosc.zcu.cz
grafana_hostname
:
grafana-cesnet.eosc.zcu.cz
kubeapi_hostname
:
kubeapi-cesnet.eosc.zcu.cz
#
# When Kubernetes API needs to be exposed, for example:
#
# pod="$(kubectl get pod -n kube-system -l component=kube-apiserver -oname)"
# kubectl -n kube-system expose "$pod" --name=apiserver --port 6443 --external-ip=INGRESS_LOCAL_IP
#
kube_public_dns_name
:
"
{{
kubeapi_hostname
|
default
('')
}}"
# hack to add public IP to certSANs in API server in grycap.kubernetes
IM_NODE_PUBLIC_IP
:
"
{{
groups['fip'][0]
}}"
#
# Alternativelly, steps for manual update of the API server certificate:
#
# rm -fv /etc/kubernetes/pki/apiserver.*
# kubeadm init phase certs all --apiserver-advertise-address=0.0.0.0 --apiserver-cert-extra-sans=10.96.0.1,MASTER_LOCAL_IP,KUBEAPI_HOSTNAME
# service kubelet restart
#
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