Skip to content

Commit

Permalink
some minor fix during test on ubuntu (#451)
Browse files Browse the repository at this point in the history
* some minor fix during test on ubuntu

* Additional change based on test

* cluster.yaml

* djust folder
  • Loading branch information
jichenjc authored and k8s-ci-robot committed Aug 26, 2019
1 parent c93fdde commit dcd9c3c
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 253 deletions.
4 changes: 2 additions & 2 deletions samples/generate-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ TEMPLATES_PATH=${TEMPLATES_PATH:-$PWD/$SUPPORTED_PROVIDER_OS}
HOME_DIR=${PWD%%/samples/*}
CONFIG_DIR=$PWD/templates/clouds-secrets/configs
USERDATA=$PWD/templates/user-data
MASTER_USER_DATA=$USERDATA/$PROVIDER_OS/templates/master-user-data.sh
WORKER_USER_DATA=$USERDATA/$PROVIDER_OS/templates/worker-user-data.sh
MASTER_USER_DATA=$USERDATA/$PROVIDER_OS/templates/master-user-data.sh.template
WORKER_USER_DATA=$USERDATA/$PROVIDER_OS/templates/worker-user-data.sh.template

# Container Linux (simply named CoreOS here) does its configuration a bit different
# so it gets some of its own vars here.
Expand Down
10 changes: 7 additions & 3 deletions samples/templates/cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: cluster.x-k8s.io/v1alpha2
kind: Cluster
metadata:
name: cluster001
name: test-cluster
namespace: default
spec:
clusterNetwork:
Expand All @@ -13,17 +13,21 @@ spec:
infrastructureRef:
kind: OpenStackCluster
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
name: cluster001
name: test-cluster
namespace: default
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: OpenStackCluster
metadata:
name: cluster001
name: test-cluster
namespace: default
spec:
tags:
- a_cluster_wide_tag
cloudName: <Cloud Name>
cloudsSecret:
name: cloud-config
namespace: capo-system
clusterConfiguration:
controlPlaneEndpoint: <apiServerLoadBalancer or master IP>:6443
kubernetesVersion: 1.15.0
Expand Down
10 changes: 6 additions & 4 deletions samples/templates/machines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
namespace: default
name: test-cluster-kube-master-01
version: "v1.15.0"
version: "1.15.0"
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: OpenStackMachine
metadata:
name: test-cluster-kube-master-01
spec:
cloudName: <Cloud Name>
flavor: m1.medium
image: <Image Name>
keyName: cluster-api-provider-openstack
Expand All @@ -49,11 +50,11 @@ metadata:
spec:
clusterConfiguration:
certificatesDir: /etc/kubernetes/pki
controlPlaneEndpoint: "53.48.112.86:6443"
controlPlaneEndpoint: <End point Ip: End point Address>
dns:
type: "CoreDNS"
imageRepository: "k8s.gcr.io"
kubernetesVersion: v1.14.2
kubernetesVersion: 1.15.0
networking:
dnsDomain: ""
podSubnet: ""
Expand All @@ -78,13 +79,14 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
namespace: default
name: test-cluster-openstack-node-01
version: "v1.15.0"
version: "1.15.0"
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: OpenStackMachine
metadata:
name: test-cluster-openstack-node-01
spec:
cloudName: <Cloud Name>
flavor: m1.medium
image: <Image Name>
keyName: cluster-api-provider-openstack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ echo $OPENSTACK_CLOUD_CACERT_CONFIG | base64 -d > /etc/certs/cacert


# Setup certificates
mkdir - /etc/kubernetes/pki /etc/kubernetes/pki/etcd
mkdir /etc/kubernetes/pki /etc/kubernetes/pki/etcd
cat > /etc/kubernetes/pki/ca.crt <<EOF
{{ .CACert }}
EOF
Expand Down
147 changes: 0 additions & 147 deletions samples/templates/user-data/ubuntu/master-user-data.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ systemctl disable ufw
systemctl mask ufw

# Setup certificates
mkdir - /etc/kubernetes/pki /etc/kubernetes/pki/etcd
mkdir /etc/kubernetes/pki /etc/kubernetes/pki/etcd
cat > /etc/kubernetes/pki/ca.crt <<EOF
{{ .CACert }}
EOF
Expand Down
95 changes: 0 additions & 95 deletions samples/templates/user-data/ubuntu/worker-user-data.sh

This file was deleted.

0 comments on commit dcd9c3c

Please sign in to comment.