Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSD
public
KubeFed
Commits
cfc6aba1
Commit
cfc6aba1
authored
Oct 01, 2020
by
Marco Lorini
Browse files
2020-10-01 ML: add config file for resources
parent
8733a4f0
Changes
5
Hide whitespace changes
Inline
Side-by-side
resource/federated_deployment.yaml
0 → 100644
View file @
cfc6aba1
# federated_deployment.yaml
apiVersion
:
types.kubefed.io/v1beta1
kind
:
FederatedDeployment
metadata
:
name
:
fed-helloworld
namespace
:
fed-namespace
spec
:
template
:
metadata
:
name
:
helloworld
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
helloworld
template
:
metadata
:
labels
:
app
:
helloworld
spec
:
containers
:
-
image
:
docker.io/csdgarr/hello-world:v1
name
:
helloworld
imagePullPolicy
:
IfNotPresent
placement
:
clusters
:
-
name
:
member-cluster-1
-
name
:
member-cluster-2
overrides
:
-
clusterName
:
member-cluster-2
clusterOverrides
:
-
path
:
"
/spec/replicas"
value
:
3
resource/federated_ingress.yaml
0 → 100644
View file @
cfc6aba1
# federated_ingress.yaml
apiVersion
:
types.kubefed.io/v1beta1
kind
:
FederatedIngress
metadata
:
name
:
fed-helloworld-ingress
namespace
:
fed-namespace
spec
:
template
:
metadata
:
name
:
helloworld-ingress
labels
:
app
:
helloworld
spec
:
rules
:
-
host
:
helloworld.<domain>
http
:
paths
:
-
path
:
/
backend
:
serviceName
:
fed-helloworld-service
servicePort
:
8080
placement
:
clusters
:
-
name
:
member-cluster-1
-
name
:
member-cluster-2
resource/federated_namespace.yaml
0 → 100644
View file @
cfc6aba1
# federated_namespace.yaml
apiVersion
:
types.kubefed.io/v1beta1
kind
:
FederatedNamespace
metadata
:
name
:
fed-namespace
namespace
:
fed-namespace
spec
:
placement
:
clusters
:
-
name
:
member-cluster-1
-
name
:
member-cluster-2
resource/federated_service.yaml
0 → 100644
View file @
cfc6aba1
# federated_service.yaml
apiVersion
:
types.kubefed.io/v1beta1
kind
:
FederatedService
metadata
:
name
:
fed-helloworld-service
namespace
:
fed-namespace
spec
:
template
:
metadata
:
name
:
fed-helloworld-service
labels
:
app
:
helloworld
spec
:
selector
:
app
:
helloworld
type
:
ClusterIP
ports
:
-
name
:
http
port
:
8080
targetPort
:
8080
protocol
:
TCP
placement
:
clusters
:
-
name
:
member-cluster-1
-
name
:
member-cluster-2
resource/namespace.yaml
0 → 100644
View file @
cfc6aba1
# namespace.yaml file
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
fed-namespace
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment